Microsoft DirectX 8.1 (C++)

IVMRMonitorConfig::GetMonitor

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The GetMonitor method retrieves the monitor that this instance of the VMR is using for video playback.

Syntax

HRESULT GetMonitor(
  VMRGUID*  pGUID
);

Parameters

pGUID

[out]  Pointer to a VMRGUID structure that identifies the monitor currently in use.

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.

See Also