Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WmiSetALSBrightness method of the WmiMonitorBrightnessMethods class

The WmiSetALSBrightness method is used to set the ambient light sensor brightness value. If an active brightness override was established by using the WmiSetBrightness method, that override will take precedence over the ALS brightness set by using this method. For an enabled ALS brightness override to take effect, the brightness policy has to be reverted by using the WmiRevertToPolicyBrightness method.

Syntax


uint32 WmiSetALSBrightness(
  uint8 Brightness
);

Parameters

Brightness

The ALS brightness as a percentage.

Return value

Returns zero (0) to indicate success. Any other number indicates an error. For more information about error codes, see WMI Error Constants or WbemErrorEnum.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Namespace

\root\wmi

MOF

WmiCore.mof

DLL

WmiProv.dll

See also

WmiMonitorBrightnessMethods
MSMonitorClass

 

 

Community Additions

Show:
© 2014 Microsoft