|Microsoft DirectX 9.0|
On a multi-monitor system, the SetMonitor method specifies the monitor that this instance of the VMR should use for video playback.
HRESULT SetMonitor( UINT uDev );
[in] Index that specifies the monitor.
The method returns an HRESULT. Possible values include the following.
|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.|
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 D3d9.h, Vmr9.h.