Microsoft DirectX 9.0

IVMRMonitorConfig9::GetDefaultMonitor

The GetDefaultMonitor method retrieves the default monitor that all future instances of the VMR will use for video playback.

Syntax

HRESULT GetDefaultMonitor(
  UINT*  puDev
);

Parameters

puDev

[out]  Pointer that receives an index that identifies the default monitor on the system.

Return Values

The method returns an HRESULT. Possible values include the following.

Value Description
E_POINTER NULL pointer argument.
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 determine which is the default DirectDraw device the overlay mixer filter will use when connecting to an upstream filter.

Requirements

Include D3d9.h, Vmr9.h.

See Also