GetNumberOfPhysicalMonitorsFromIDirect3DDevice9 function (physicalmonitorenumerationapi.h)

Retrieves the number of physical monitors associated with a Direct3D device.

Syntax

HRESULT GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(
  [in]  IDirect3DDevice9 *pDirect3DDevice9,
  [out] LPDWORD          pdwNumberOfPhysicalMonitors
);

Parameters

[in] pDirect3DDevice9

Pointer to the IDirect3DDevice9 interface of the Direct3D device.

[out] pdwNumberOfPhysicalMonitors

Receives the number of physical monitors associated with the Direct3D device.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header physicalmonitorenumerationapi.h
Library Dxva2.lib
DLL Dxva2.dll

See also

GetPhysicalMonitorsFromIDirect3DDevice9

Monitor Configuration Functions