Microsoft DirectX 9.0

IVMRSurfaceAllocatorNotify9::ChangeD3DDevice

The ChangeD3DDevice method notifies the VMR that the Direct3D device has changed.

Syntax

HRESULT ChangeD3DDevice(
  IDirect3DDevice9*  lpD3DDevice,
  HMONITOR  hMonitor
);

Parameters

lpD3DDevice

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

hMonitor

[in]  Handle to the monitor associated with the new device.

Return Values

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

Value Description
S_OK The method succeeded.

Requirements

Include D3d9.h, Vmr9.h.

See Also