Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 2.32 KB

wmisetalsbrightnessstate-method-in-class-wmimonitorbrightnessmethods.md

File metadata and controls

73 lines (46 loc) · 2.32 KB
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
APIRef
kbSyntax
WmiMonitorBrightnessMethods.WmiSetALSBrightnessState
COM
WmiProv.dll

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
WmiCore.mof
DLL
WmiProv.dll

See also

WmiMonitorBrightnessMethods

MSMonitorClass