IVMRMonitorConfig9::GetAvailableMonitors method

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

Syntax


HRESULT GetAvailableMonitors(
  [out]  VMR9MonitorInfo *pInfo,
  [in]   DWORD dwMaxInfoArraySize,
  [out]  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 value

The method returns an HRESULT. Possible values include the following.

Return codeDescription
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.

Include DShow.h and D3d9.h before Vmr9.h.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 R2 [desktop apps only]

Header

Vmr9.h

Library

Strmiids.lib

See also

Using the Video Mixing Renderer
IVMRMonitorConfig9 Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft