Bewerken

Delen via


PFND3DDDI_DESTROYEXTENSIONDEVICE callback function (d3dumddi.h)

The DestroyExtensionDevice function releases resources for a Microsoft DirectX Video Acceleration (VA) extension device.

Syntax

PFND3DDDI_DESTROYEXTENSIONDEVICE Pfnd3dddiDestroyextensiondevice;

HRESULT Pfnd3dddiDestroyextensiondevice(
  HANDLE hDevice,
  HANDLE hExtension
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

hExtension

A handle to the DirectX VA extension device that the CreateExtensionDevice function created.

Return value

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

Remarks

The DestroyExtensionDevice function notifies the driver to destroy the handle to the DirectX VA extension device that the CreateExtensionDevice function previously created. The driver can then release resources that are associated with the DirectX VA extension device handle.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

CreateExtensionDevice

D3DDDI_DEVICEFUNCS