Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The SetDefaultMonitor method specifies the default monitor that all future instances of the VMR should use for video playback.
Syntax
HRESULT SetDefaultMonitor(
const VMRGUID* pGUID
);
Parameters
pGUID
[in] Pointer to a GUID object.
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. |
Remarks
Use this method on a multi-monitor system to specify to the VMR the default DirectDraw device to use when connecting to an upstream filter. The default DirectDraw device can be overriden for a particular connection by the SetMonitor method.
See Also