IVMRMonitorConfig::GetDefaultMonitor

 
Microsoft DirectShow 9.0

IVMRMonitorConfig::GetDefaultMonitor

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

Returns an HRESULT value. Possible values include the following.

Value Description
E_POINTER NULL pointer argument.
S_OK Success.
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.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also