Microsoft DirectX 8.1 (C++)

IVMRMonitorConfig::GetAvailableMonitors

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The GetAvailableMonitors method retrieves information about the monitors currently available on the system.

Syntax

Parameters
HRESULT GetAvailableMonitors(
  VMRMONITORINFO*  pInfo,
  DWORD  dwMaxInfoArraySize,
  DWORD*  pdwNumDevices
);

pInfo

[out]  Pointer to an array of VMRMONITORINFO structures that contain information about each monitor on the system.

dwMaxInfoArraySize

[in]  Specifies the maximum number of members in the array.

pdwNumDevices

[out]  Pointer to a DWORD that receives the actual number of devices retrieved.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Error Code Description
E_POINTER pInfo or pdwNumDevices is invalid.
E_INVALIDARG dwMaxInfoArraySize is zero.

Remarks

Use this method to get a list of DirectDraw device GUIDs and their associated monitor information that the VMR can use when connecting to an upstream decoder filter. To return the required array size in the pdwNumDevices parameter, specify NULL for pInfo.

See Also