 |
GetPhysicalMonitorsFromHMONITOR ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the physical monitors associated with an HMONITOR monitor handle. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetPhysicalMonitorsFromHMONITOR(
HMONITOR hMonitor,
DWORD dwPhysicalMonitorArraySize,
LPPHYSICAL_MONITOR pPhysicalMonitorArray
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetPhysicalMonitorsFromHMONITOR IN dxva2;
INTEGER hMonitor,;
LONG dwPhysicalMonitorArraySize,;
STRING @pPhysicalMonitorArray
|
 |
 |
 |
| Parameters: |
 |
hMonitor
[in] A monitor handle. Monitor handles are returned by several Multiple Display Monitor functions, including EnumDisplayMonitors and MonitorFromWindow.
dwPhysicalMonitorArraySize
[in] Number of elements in pPhysicalMonitorArray. To get the required size of the array, call GetNumberOfPhysicalMonitorsFromHMONITOR.
pPhysicalMonitorArray
[out] Pointer to an array of PHYSICAL_MONITOR structures. The caller must allocate the array.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| Usage: |
 |
cPhysMonitorArray=REPLICATE(CHR(0),1024)
= GetPhysicalMonitorsFromHMONITOR(hMonitor,;
nPhysMonitorCount, @cPhysMonitorArray)
|
 |
 |
| My comment: |
 |
| When you are done using the monitor handles, close them by passing the pPhysicalMonitorArray array to the DestroyPhysicalMonitors function. |
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-12-10 15:27:04 | | Modified: | 2008-12-10 15:30:49 | Visited in last 7 days: 13 |