Microsoft DirectX 9.0

IVMRMonitorConfig9::SetMonitor

On a multi-monitor system, the SetMonitor method specifies the monitor that this instance of the VMR should use for video playback.

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 The allocator-presenter has not been loaded.

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

Include D3d9.h, Vmr9.h.

See Also