IoUnregisterShutdownNotification 函式 (wdm.h)
IoUnregisterShutdownNotification 例程會從關機通知佇列中移除已註冊的驅動程式。
語法
void IoUnregisterShutdownNotification(
[in] PDEVICE_OBJECT DeviceObject
);
參數
[in] DeviceObject
驅動程式裝置物件的指標。
傳回值
無
備註
只有在先前呼叫 IoRegisterShutdownNotification 或 IoRegisterLastChanceShutdownNotification 且具有指定 DeviceObject 的驅動程式時,才能呼叫 IoUnregisterShutdownNotification。 此例程通常從驅動程式的 Unload 例程呼叫。
呼叫 IoUnregisterShutdownNotification 會取消所有已註冊指定 DeviceObject 的關機通知。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | 從 Windows 2000 開始提供。 |
目標平台 | Universal |
標頭 | wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h) |
程式庫 | NtosKrnl.lib |
Dll | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |
DDI 合規性規則 | HwStorPortProhibitedDDIs (storport) 、 IrqlIoPassive5 (wdm ) 、 PowerIrpDDis (wdm) |