WmiSetALSBrightnessState method of the WmiMonitorBrightnessMethods class
The WmiSetALSBrightnessState method is used to control the ambient light sensor brightness state. 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 WmiSetALSBrightnessState(
boolean State
);
Parameters
-
State
-
ALS brightness state. False disables the ALS brightness override and true enables it.
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 |
|
DLL |
|