DXGKDDI_CLOSEALLOCATION回呼函式 (d3dkmddi.h)
DxgkDdiCloseAllocation 函式會解除系結 DxgkDdiOpenAllocation 函式所建立的裝置特定配置。
語法
DXGKDDI_CLOSEALLOCATION DxgkddiCloseallocation;
NTSTATUS DxgkddiCloseallocation(
[in] IN_CONST_HANDLE hDevice,
[in] IN_CONST_PDXGKARG_CLOSEALLOCATION pCloseAllocation
)
{...}
參數
[in] hDevice
配置未系結的圖形內容裝置句柄。 顯示迷你埠驅動程式的 DxgkDdiCreateDevice 函式先前已將此句柄提供給 hDeviceDXGKARG_CREATEDEVICE 結構成員中的 Microsoft DirectX 圖形核心子系統。
[in] pCloseAllocation
包含解除系結配置相關信息之 DXGKARG_CLOSEALLOCATION 結構的指標。
傳回值
DxgkDdiCloseAllocation 傳回STATUS_SUCCESS;如果配置未從圖形內容裝置成功解除系結,則傳回適當的錯誤結果。
言論
在顯示迷你埠驅動程式收到其 DxgkDdiDestroyAllocation 函式的呼叫以釋放配置之前,驅動程式會呼叫 DxgkDdiCloseAllocation 函式,以關閉這些配置的所有系結。
針對包含多個配置的資源,DirectX 圖形核心子系統會指示 DxgkDdiCloseAllocation,藉由指定 pOpenHandleList 中裝置特定配置的句柄,DXGKARG_CLOSEALLOCATION 結構的成員,以同時關閉所有配置。
DxgkDdiCloseAllocation 應設為可分頁。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | Windows Vista |
目標平臺 | 桌面 |
標頭 | d3dkmddi.h |
IRQL | PASSIVE_LEVEL |