IVMRMonitorConfig9::SetMonitor

 
Microsoft DirectShow 9.0

IVMRMonitorConfig9::SetMonitor

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(
  UINT  uDev
);

Parameters

uDev

[in]  Index that specifies the monitor.

Return Values

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

Value Description
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.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also