Export (0) Print
Expand All

IVMRMonitorConfig9::GetDefaultMonitor method

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

Syntax


HRESULT GetDefaultMonitor(
  [out]  UINT *puDev
);

Parameters

puDev [out]

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

Return value

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

Return codeDescription
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.

Include DShow.h and D3d9.h before Vmr9.h.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 R2 [desktop apps only]

Header

Vmr9.h

Library

Strmiids.lib

See also

Using the Video Mixing Renderer
IVMRMonitorConfig9 Interface
IVMRMonitorConfig9::SetDefaultMonitor

 

 

Community Additions

ADD
Show:
© 2015 Microsoft