DXGKDDI_DESTROYCONTEXT callback function (d3dkmddi.h)
The DxgkDdiDestroyContext function destroys the specified graphics processing unit (GPU) context.
Syntax
DXGKDDI_DESTROYCONTEXT DxgkddiDestroycontext;
NTSTATUS DxgkddiDestroycontext(
[in] IN_CONST_HANDLE hContext
)
{...}
Parameters
[in] hContext
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Target Platform | Desktop |
Header | d3dkmddi.h |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for