DXGKDDI_DESTROYCONTEXT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dkmddi.h

DXGKDDI_DESTROYCONTEXT DxgkddiDestroycontext;

NTSTATUS DxgkddiDestroycontext(
  [in] IN_CONST_HANDLE hContext
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dkmddi-dxgkddi_destroycontext)

DXGKDDI_DESTROYCONTEXT callback function

Description

The DxgkDdiDestroyContext function destroys the specified graphics processing unit (GPU) context.

Parameters

hContext [in]

A handle to the context to destroy. The display miniport driver's DxgkDdiCreateContext function previously returned this handle in the hContext member of the DXGKARG_CREATECONTEXT structure that the pCreateContext parameter of DxgkDdiCreateContext points to.

Return value

DxgkDdiDestroyContext returns STATUS_SUCCESS, or an appropriate error result if the context is not successfully destroyed.

Remarks

A driver should free all resources that it allocated for the context and clean up any internal tracking data structures.

DxgkDdiDestroyContext should be made pageable.

See also

DXGKARG_CREATECONTEXT

DxgkDdiCreateContext