Поделиться через


IVMRMonitorConfig9::GetDefaultMonitor

 
Microsoft DirectShow 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 Direct3D device the overlay mixer filter will use when connecting to an upstream filter.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also