DXGKCB_IS_DEVICE_PRESENT回呼函式 (dispmprt.h)
DxgkCbIsDevicePresent 函式會判斷指定的PCI裝置是否存在。
語法
DXGKCB_IS_DEVICE_PRESENT DxgkcbIsDevicePresent;
NTSTATUS DxgkcbIsDevicePresent(
[in] HANDLE DeviceHandle,
[in] PPCI_DEVICE_PRESENCE_PARAMETERS DevicePresenceParameters,
[out] PBOOLEAN DevicePresent
)
{...}
參數
[in] DeviceHandle
表示顯示配接器的句柄。 顯示迷你埠驅動程式先前在傳遞 至 dxgkDdiStartDevice之 DXGKRNL_INTERFACE 結構的 DeviceHandle 成員中取得此句柄。
[in] DevicePresenceParameters
PCI_DEVICE_PRESENCE_PARAMETERS結構的指標(定義於 Wdm.h中),呼叫端會填入識別裝置的資訊。
[out] DevicePresent
布爾變數的指標,如果裝置存在,則為 true TRUE,如果裝置不存在 ,則為 FALSE。
傳回值
DxgkCbIsDevicePresent 會在成功時傳回STATUS_SUCCESS。 否則,它會傳回 Ntstatus.h中定義的其中一個錯誤碼。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | Windows Vista |
目標平臺 | 桌面 |
標頭 | dispmprt.h (包括 Dispmprt.h) |
IRQL | PASSIVE_LEVEL |