共用方式為


IVMRSurfaceAllocatorNotify9::SetD3DDevice

 
Microsoft DirectShow 9.0

IVMRSurfaceAllocatorNotify9::SetD3DDevice

The SetD3DDevice method sets the Direct3D device.

Syntax

  HRESULT SetD3DDevice(
  IDirect3DDevice9*  lpD3DDevice,
  HMONITOR  hMonitor
);

Parameters

lpD3DDevice

[in]  Pointer to the IDirect3DDevice9 interface of the device.

hMonitor

[in]  Handle to a monitor.

Return Values

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

Value Description
S_OK The method succeeded.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also