Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.69 KB

nc-d3dkmddi-dxgkddi_destroydevice.md

File metadata and controls

73 lines (55 loc) · 2.69 KB
UID title description old-location ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos tech.root req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3dkmddi.DXGKDDI_DESTROYDEVICE
DXGKDDI_DESTROYDEVICE (d3dkmddi.h)
The DxgkDdiDestroyDevice function destroys a graphics context device.
display\dxgkddidestroydevice.htm
05/10/2018
DXGKDDI_DESTROYDEVICE callback function
DXGKDDI_DESTROYDEVICE, DXGKDDI_DESTROYDEVICE callback, DmFunctions_14927367-d2f9-4aa4-ab3d-a3c8decedbcf.xml, DxgkDdiDestroyDevice, DxgkDdiDestroyDevice callback function [Display Devices], d3dkmddi/DxgkDdiDestroyDevice, display.dxgkddidestroydevice
d3dkmddi.h
Desktop
Windows Vista
PASSIVE_LEVEL
Windows
display
DXGKDDI_DESTROYDEVICE
d3dkmddi/DXGKDDI_DESTROYDEVICE
APIRef
kbSyntax
UserDefined
d3dkmddi.h
DXGKDDI_DESTROYDEVICE

DXGKDDI_DESTROYDEVICE callback function

-description

The DxgkDdiDestroyDevice function destroys a graphics context device.

-parameters

-param hDevice [in]

A handle to the graphics context device that DxgkDdiDestroyDevice will destroy. The display miniport driver's DxgkDdiCreateDevice function previously provided this handle to the Microsoft DirectX graphics kernel subsystem in the hDevice member of the DXGKARG_CREATEDEVICE structure.

-returns

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

-remarks

The DirectX graphics kernel subsystem calls the display miniport driver's DxgkDdiDestroyDevice function to destroy a graphics context device that the driver's DxgkDdiCreateDevice function created. DxgkDdiDestroyDevice should free all of the resources that were allocated for the device and clean up any internal tracking data structures.

DxgkDdiDestroyDevice should be made pageable.

-see-also

DXGKARG_CREATEDEVICE

DxgkDdiCreateDevice