DXGKDDI_STOP_DEVICE callback function (dispmprt.h)

The DxgkDdiStopDevice function resets a display adapter and frees resources allocated during DxgkDdiStartDevice.

Syntax

DXGKDDI_STOP_DEVICE DxgkddiStopDevice;

NTSTATUS DxgkddiStopDevice(
  [in] IN_CONST_PVOID MiniportDeviceContext
)
{...}

Parameters

[in] MiniportDeviceContext

A handle to a context block associated with a display adapter. The display miniport driver's DxgkDdiAddDevice function previously provided this handle to the DirectX graphics kernel subsystem.

Return value

DxgkDdiStopDevice returns STATUS_SUCCESS if it succeeds; otherwise, it returns one of the error codes defined in Ntstatus.h.

Remarks

For more information on how this function is used in Plug and Play (PnP) scenarios starting in Windows 8, see Plug and Play (PnP) in WDDM 1.2 and later.

The DxgkDdiStopDevice function should be made pageable.

Requirements

Requirement Value
Minimum supported client Windows Vista
Target Platform Desktop
Header dispmprt.h
IRQL PASSIVE_LEVEL

See also

DxgkDdiStartDevice