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

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\wmi
MOF
WmiCore.mof
DLL
WmiProv.dll

See also

WmiMonitorBrightnessMethods

MSMonitorClass