Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
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(
const VMRGUID* pGUID
);
Parameters
pGUID
[in] Pointer to a VMRGUID that identifies the monitor.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Error Code | Description |
E_POINTER | pGUID is invalid. |
VFW_E_WRONG_STATE | The allocator-presenter has not been loaded. |
E_INVALIDARG | The GUID value is invalid. |
Remarks
Use this method on a multi-monitor system to specify to the VMR which DirectDraw driver should be used when connecting to an upstream decoder filter.
See Also