IoUnregisterShutdownNotification 函数 (wdm.h)

IoUnregisterShutdownNotification 例程从关闭通知队列中删除已注册的驱动程序。

语法

VOID IoUnregisterShutdownNotification(
  [in] PDEVICE_OBJECT DeviceObject
);

参数

[in] DeviceObject

指向驱动程序的设备对象的指针。

返回值

没有

言论

IoUnregisterShutdownNotification 只能由驱动程序调用,前提是该驱动程序以前 IoRegisterShutdownNotificationIoRegisterLastChanceShutdownNotification 给定 的 deviceObject。 此例程通常从驱动程序的 Unload 例程调用。

调用 IoUnregisterShutdownNotification 取消已注册给定的 DeviceObject的所有关闭通知。

要求

要求 价值
最低支持的客户端 从 Windows 2000 开始可用。
目标平台 普遍
标头 wdm.h (包括 Wdm.h、Ntddk.h、Ntifs.h)
NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI 符合性规则 HwStorPortProhibitedDIS(storport)IrqlIoPassive5(wdm)PowerIrpDDis(wdm)

另请参阅

IoRegisterLastChanceShutdownNotification

IoRegisterShutdownNotification