Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.26 KB

File metadata and controls

60 lines (41 loc) · 1.26 KB

Home

Function name : GetMonitorContrast

Group: Monitor Configuration (Vista) - Library: dxva2


Retrieves the minimum, maximum, and current contrast settings for a monitor.


Declaration:

BOOL GetMonitorContrast(
  HANDLE  hMonitor,
  LPDWORD  pdwMinimumContrast,
  LPDWORD  pdwCurrentContrast,
  LPDWORD  pdwMaximumContrast
);  

FoxPro declaration:

DECLARE INTEGER GetMonitorContrast IN dxva2;
	INTEGER hMonitor,;
	LONG @pdwMinimumContrast,;
	LONG @pdwCurrentContrast,;
	LONG @pdwMaximumContrast  

Parameters:

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

pdwMinimumContrast [out] Receives the monitor"s minimum contrast.

pdwCurrentContrast [out] Receives the monitor"s current contrast.

pdwMaximumContrast [out] Receives the monitor"s maximum contrast.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

See also: SetMonitorContrast.