Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.26 KB

File metadata and controls

55 lines (36 loc) · 1.26 KB

Home

Function name : SetMonitorBrightness

Group: Monitor Configuration (Vista) - Library: dxva2


Sets a monitor"s brightness value.


Code examples:

How to adjust monitor brightness (Vista, monitor with DDC support)

Declaration:

BOOL SetMonitorBrightness(
  HANDLE  hMonitor,
  DWORD  dwNewBrightness
);  

FoxPro declaration:

DECLARE INTEGER SetMonitorBrightness IN dxva2;
	INTEGER hMonitor,;
	LONG dwNewBrightness  

Parameters:

hMonitor [in] Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9.

dwNewBrightness [in] Brightness value. To get the monitor"s minimum and maximum brightness values, call GetMonitorBrightness.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

If this function is supported, the GetMonitorCapabilities function returns the MC_CAPS_BRIGHTNESS flag.

See also: GetMonitorBrightness.