Microsoft DirectX 9.0 |
The GetAvailableMonitors method retrieves information about the monitors currently available on the system.
Syntax
HRESULT GetAvailableMonitors(
VMR9MonitorInfo* pInfo,
DWORD dwMaxInfoArraySize,
DWORD* pdwNumDevices
);
Parameters
pInfo
[out] Pointer to an array of VMR9MonitorInfo structures that contain information about each monitor on the system.
dwMaxInfoArraySize
[in] Specifies the maximum number of members in the array.
pdwNumDevices
[out] If pInfo is NULL, this parameter receives the required array size. Otherwise, it receives the actual number of devices retrieved.
Return Values
The method returns an HRESULT. Possible values include the following.
Value | Description |
E_INVALIDARG | Invalid argument; dwMaxInfoArraySize must be greater than zero. |
E_POINTER | NULL pointer argument. |
S_OK | The method succeeded. |
Remarks
Use this method to get a list of Direct Draw device identifiers and their associated monitor information that the mixer can use when connecting to an upstream decoder filter.
Requirements
Include D3d9.h, Vmr9.h.
See Also