Expand Minimize

DxgkDdiDestroyDevice routine

The DxgkDdiDestroyDevice function destroys a graphics context device.

Syntax


PDXGKDDI_DESTROYDEVICE DxgkDdiDestroyDevice;

NTSTATUS APIENTRY DxgkDdiDestroyDevice(
  _In_  const HANDLE hDevice
)
{ ... }

Parameters

hDevice [in]

[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.

Return value

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.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmddi.h (include D3dkmddi.h)

IRQL

PASSIVE_LEVEL

See also

DXGKARG_CREATEDEVICE
DxgkDdiCreateDevice

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft