SetDefaultMonitor
Collapse the table of content
Expand the table of content

IVMRMonitorConfig9::SetDefaultMonitor method

The SetDefaultMonitor method specifies the default monitor that all future instances of the VMR should use for video playback.

Syntax


HRESULT SetDefaultMonitor(
  [in] UINT uDev
);

Parameters

uDev [in]

Index that specifies the default monitor.

Return value

The method returns an HRESULT. Possible values include those in the following table.

Return codeDescription
E_FAIL

Could not set the specified monitor as the default.

E_INVALIDARG

Invalid argument; uDev does not correspond to a valid monitor.

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 specify to the VMR the default Direct3D device to use when connecting to an upstream filter. The default Direct3D device can be overridden for a particular connection by the SetMonitor method.

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::GetDefaultMonitor

 

 

Community Additions

ADD
Show:
© 2016 Microsoft