Monitor GetNumberOfPhysicalMonitorsFromHMONITOR Function 

 
Monitor Configuration API
Previous Next

GetNumberOfPhysicalMonitorsFromHMONITOR Function

Retrieves the number of physical monitors associated with an HMONITOR monitor handle. Call this function before calling GetPhysicalMonitorsFromHMONITOR.

Syntax

  BOOL GetNumberOfPhysicalMonitorsFromHMONITOR(
  HMONITOR
    hMonitor,

    LPDWORD
    pdwNumberOfPhysicalMonitors

  );

Parameters

hMonitor

[in]  A monitor handle. Monitor handles are returned by several Multiple Display Monitor functions, including EnumDisplayMonitors and MonitorFromWindow, which are part of the graphics device interface (GDI).

pdwNumberOfPhysicalMonitors

[out]  Receives the number of physical monitors associated with the monitor handle.

Return Value

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.

Requirements

Client: Requires Windows Vista.

Header: Include PhysicalMonitorEnumerationAPI.h.

Library: Use dxva2.lib.

See Also

Previous Next