description | ms.assetid | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Used to control the ambient light sensor brightness state. |
ff400d4e-be8c-450b-ad53-d43b0ab84ab3 |
WmiSetALSBrightnessState method of the WmiMonitorBrightnessMethods class |
reference |
05/31/2018 |
|
|
|
|
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.
uint32 WmiSetALSBrightnessState(
boolean State
);
-
State
-
ALS brightness state. False disables the ALS brightness override and true enables it.
Returns zero (0) to indicate success. Any other number indicates an error. For more information about error codes, see WMI Error Constants or WbemErrorEnum.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\wmi |
MOF |
|
DLL |
|