Compartilhar via


IVMRSurfaceAllocatorNotify::ChangeDDrawDevice

 
Microsoft DirectShow 9.0

IVMRSurfaceAllocatorNotify::ChangeDDrawDevice

The ChangeDDrawDevice method notifies the VMR that the DirectDraw playback device has changed. For example, on a multi-monitor system, the user has moved the video rectangle from one monitor to another.

Syntax

  HRESULT ChangeDDrawDevice(

  
  LPDIRECTDRAW7
  
  lpDirectDrawDevice
  ,

  
  HMONITOR
  
  hMonitor

  );

Parameters

lpDirectDrawDevice

[in]  Specifies the DirectDraw device.

hMonitor

[in]  Specifies the handle to the monitor associated with the DirectDraw device.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The VMR needs to know which DirectDraw device is being used at any given time in order to associate the Direct3D surfaces being created in the mixer component with that device.

Requirements

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

Library: Use Strmiids.lib.

See Also