Export (0) Print
Expand All

IVMRMonitorConfig9::SetMonitor method

On a multi-monitor system, the SetMonitor method specifies the monitor that the VMR should use when it creates the Direct3D device.

Syntax


HRESULT SetMonitor(
  [in]  UINT uDev
);

Parameters

uDev [in]

Index that specifies the monitor.

Return value

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

Return codeDescription
E_INVALIDARG

Invalid argument; uDev does not correspond to a valid monitor.

S_OK

The method succeeded.

VFW_E_WRONG_STATE

Cannot set the monitor after the VMR's input pins have been connected.

 

Remarks

Use this method on a multi-monitor system to specify to the VMR which Direct3D device should be used 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
IVMRMonitorConfig9::GetMonitor

 

 

Community Additions

ADD
Show:
© 2014 Microsoft