PFND3DDDI_DESTROYDECODEDEVICE callback function

The DestroyDecodeDevice function releases resources for a Microsoft DirectX Video Acceleration (VA) decode device.

Syntax


PFND3DDDI_DESTROYDECODEDEVICE DestroyDecodeDevice;

__checkReturn HRESULT APIENTRY DestroyDecodeDevice(
  _In_ HANDLE hDevice,
  _In_ HANDLE hDecodeDevice
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

hDecodeDevice [in]

A handle to the DirectX VA decode device that was created by the CreateDecodeDevice function.

Return value

DestroyDecodeDevice should return S_OK or an appropriate error result if it cannot successfully release resources for the DirectX VA decode device.

Remarks

The DestroyDecodeDevice function notifies the driver to destroy the handle to the DirectX VA decode device that the CreateDecodeDevice function previously created. The driver can then release resources that are associated with the DirectX VA decode device handle.

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

CreateDecodeDevice
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show: