Share via


IVMRSurfaceAllocatorNotify::SetDDrawDevice

 
Microsoft DirectShow 9.0

IVMRSurfaceAllocatorNotify::SetDDrawDevice

The SetDDrawDevice method sets the initial DirectDraw device and monitor to be used for video playback.

Syntax

  HRESULT SetDDrawDevice(

  
  LPDIRECTDRAW7
  
  lpDirectDrawDevice
  ,

  
  HMONITOR
  
  hMonitor

  );

Parameters

lpDirectDrawDevice

[in]  Specifies the DirectDraw device.

hMonitor

[in]  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