PFND3DDDI_DESTROYQUERY callback function (d3dumddi.h)

The DestroyQuery function releases resources for a query.

Syntax

PFND3DDDI_DESTROYQUERY Pfnd3dddiDestroyquery;

HRESULT Pfnd3dddiDestroyquery(
  HANDLE hDevice,
  const HANDLE
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

HANDLE

hQuery [in]

A handle to the query that the CreateQuery function created.

Return value

DestroyQuery returns S_OK or an appropriate error result if the resources are not released.

Remarks

The DestroyQuery function notifies the driver to destroy the query handle that the CreateQuery function previously created. The driver can then release resources that are associated with the query 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

CreateQuery

D3DDDI_DEVICEFUNCS