Microsoft DirectX 9.0 |
The SetDefaultMonitor method specifies the default monitor that all future instances of the VMR should use for video playback.
Syntax
HRESULT SetDefaultMonitor(
UINT uDev
);
Parameters
uDev
[in] Index that specifies the default monitor.
Return Values
The method returns an HRESULT. Possible values include those in the following table.
Value | Description |
E_FAIL | Could not set the specified monitor as the default. |
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 the default Direct3D device to use when connecting to an upstream filter. The default Direct3D device can be overridden for a particular connection by the SetMonitor method.
Requirements
Include D3d9.h, Vmr9.h.
See Also