GetNumberOfPhysicalMonitorsFromIDirect3DDevice9 function

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

Syntax

HRESULT GetNumberOfPhysicalMonitorsFromIDirect3DDevice9(
  IDirect3DDevice9 *pDirect3DDevice9,
  LPDWORD          pdwNumberOfPhysicalMonitors
);

Parameters

pDirect3DDevice9

Pointer to the IDirect3DDevice9 interface of the Direct3D device.

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

   
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