Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.03 KB

SetMonitorContrast.md

File metadata and controls

52 lines (34 loc) · 1.03 KB

Home

Function name : SetMonitorContrast

Group: Monitor Configuration (Vista) - Library: dxva2


Sets the contrast value for a monitor.


Declaration:

BOOL SetMonitorContrast(
  HANDLE  hMonitor,
  DWORD  dwNewContrast
);  

FoxPro declaration:

DECLARE INTEGER SetMonitorContrast IN dxva2;
	INTEGER hMonitor,;
	LONG dwNewContrast  

Parameters:

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

dwNewContrast [in] Contrast value. To get the monitor"s minimum and maximum contrast values, call, call GetMonitorContrast.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

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

See also: GetMonitorContrast, GetMonitorBrightness