Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.25 KB

DestroyPhysicalMonitors.md

File metadata and controls

53 lines (35 loc) · 1.25 KB

Home

Function name : DestroyPhysicalMonitors

Group: Monitor Configuration (Vista) - Library: dxva2


Closes an array of open monitor handles. That is one of a scary name for API function.


Code examples:

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

Declaration:

BOOL DestroyPhysicalMonitors(
  DWORD dwPhysicalMonitorArraySize,
  LPPHYSICAL_MONITOR pPhysicalMonitorArray
);  

FoxPro declaration:

DECLARE INTEGER DestroyPhysicalMonitors IN dxva2;
	LONG dwPhysicalMonitorArraySize,;
	STRING @pPhysicalMonitorArray  

Parameters:

dwPhysicalMonitorArraySize [in] Number of elements in the pPhysicalMonitorArray array.

pPhysicalMonitorArray [in] Pointer to an array of PHYSICAL_MONITOR structures.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

Call this function to close an array of monitor handles obtained from the GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9 function.