KeRemoveEntryDeviceQueue 函式 (wdm.h)
KeRemoveEntryDeviceQueue 例程會傳回指定的專案是否在裝置佇列中,如果已排入佇列,則會從裝置佇列中移除它。
語法
BOOLEAN KeRemoveEntryDeviceQueue(
[in, out] PKDEVICE_QUEUE DeviceQueue,
[in, out] PKDEVICE_QUEUE_ENTRY DeviceQueueEntry
);
參數
[in, out] DeviceQueue
呼叫端提供記憶體之初始化裝置佇列物件的指標。
[in, out] DeviceQueueEntry
要從指定 DeviceQueue中移除之項目的指標。
傳回值
如果 DeviceQueueEntry 已排入佇列,則會將其移除,KeRemoveEntryDeviceQueue 會傳回 TRUE 。
言論
IRQL 會設定為 DISPATCH_LEVEL,並取得 DeviceQueue 微調鎖定。
如果指定的 DeviceQueueEntry 不在佇列中,則 IRP 已經處理,或已取消 IRP。 在此情況下,KeRemoveEntryDeviceQueue 只會傳回 false 。
指定的 DeviceQueue 微調鎖定已釋出,且 IRQL 會還原至其先前的值。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | 從 Windows 2000 開始提供。 |
目標平臺 | 普遍 |
標頭 | wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h) |
連結庫 | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | <= DISPATCH_LEVEL |
DDI 合規性規則 | HwStorPortProhibitedDIs(storport),IrqlKeDispatchLte(wdm) |