Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The GetDefaultMonitor method retrieves the default monitor that all future instances of the VMR will use for video playback.
Syntax
HRESULT GetDefaultMonitor(
VMRGUID* pGUID
);
Parameters
pGUID
[out] Pointer to a VMRGUID structure that identifies the default monitor on the system.
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 determine which is the default DirectDraw device the VMR will use when connecting to an upstream filter.
See Also