DXGKCB_DESTROYCONTEXTALLOCATION - NtDoc

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

DXGKCB_DESTROYCONTEXTALLOCATION DxgkcbDestroycontextallocation;

NTSTATUS DxgkcbDestroycontextallocation(
  [in] IN_CONST_HANDLE hAdapter,
  [in] IN_CONST_HANDLE hAllocation
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

DXGKCB_DESTROYCONTEXTALLOCATION callback function

Description

DXGKCB_DESTROYCONTEXTALLOCATION frees a resource that was previously allocated for a GPU or device-specific context.

Parameters

hAdapter [in]

Handle to the graphics adapter for which the allocation was created. The display miniport driver receives the handle from the DeviceHandle member of the DXGKRNL_INTERFACE structure in a call to its DxgkDdiStartDevice function.

hAllocation [in]

Handle that was assigned by the DirectX graphics subsystem (Dxgkrnl) to the context allocation. The display miniport driver receives the handle from the hAllocation member of the DXGKARGCB_CREATECONTEXTALLOCATION structure in a call to the DXGKCB_CREATECONTEXTALLOCATION function.

Return value

DXGKCB_DESTROYCONTEXTALLOCATION returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes defined in Ntstatus.h.

Remarks

The display miniport driver calls DXGKCB_CREATECONTEXTALLOCATION to allocate a context resource. After such a call, the driver can call DXGKCB_DESTROYCONTEXTALLOCATION at any time to free the resource.

DXGKCB_XXX functions are implemented by Dxgkrnl. To use this callback function, call DxgkCbDestroyContextAllocation via the DXGKRNL_INTERFACE.

See also

DXGKARGCB_CREATECONTEXTALLOCATION

DXGKCB_CREATECONTEXTALLOCATION

DXGKRNL_INTERFACE