DXGKDDI_STOP_DEVICE回调函数 (dispmprt.h)

DxgkDdiStopDevice 函数重置显示适配器,并释放在 DxgkDdiStartDevice期间分配的资源。

语法

DXGKDDI_STOP_DEVICE DxgkddiStopDevice;

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

参数

[in] MiniportDeviceContext

与显示适配器关联的上下文块的句柄。 显示微型端口驱动程序的 DxgkDdiAddDevice 函数以前向 DirectX 图形内核子系统提供了此句柄。

返回值

DxgkDdiStopDevice 如果成功,则返回STATUS_SUCCESS;否则,它将返回 Ntstatus.h中定义的错误代码之一。

言论

有关从 Windows 8 开始的即插即用(PnP)方案中如何使用此函数的详细信息,请参阅 WDDM 1.2 及更高版本中的 即插即用(PnP)

应将 DxgkDdiStopDevice 函数设为可分页。

要求

要求 价值
最低支持的客户端 Windows Vista
目标平台 桌面
标头 dispmprt.h
IRQL PASSIVE_LEVEL

另请参阅

DxgkDdiStartDevice