WmiSetBrightness method of the WmiMonitorBrightnessMethods class

The WmiSetBrightness method sets the display brightness of a computer monitor.

Syntax


uint32 WmiSetBrightness(
  uint32 Timeout,
  uint8 Brightness
);

Parameters

Timeout

Timeout, in seconds.

Brightness

Brightness, in percent.

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

See also

WmiMonitorBrightnessMethods
MSMonitorClass

 

 

Show:
© 2014 Microsoft. All rights reserved.