IDirect3DDeviceManager9::CloseDeviceHandle method

Closes a Direct3D device handle. Call this method to release a device handle retrieved by the IDirect3DDeviceManager9::OpenDeviceHandle method.

Syntax

HRESULT CloseDeviceHandle(
  HANDLE hDevice
);

Parameters

hDevice

Handle to the Direct3D device.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_HANDLE
Invalid handle.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header dxva2api.h

See also

Direct3D Device Manager

IDirect3DDeviceManager9