This routine is obsolete in Windows 7 and later versions of Windows. For more information, see the following Remarks section.
The IoUnregisterPlugPlayNotification routine removes the registration of a driver's callback routine for a PnP event.
NTKERNELAPI NTSTATUS IoUnregisterPlugPlayNotification( __drv_freesMem(Pool)PVOID NotificationEntry );
Pointer to an opaque value representing the registration to be removed. The value was returned by a previous call to IoRegisterPlugPlayNotification.
IoUnregisterPlugPlayNotification always returns STATUS_SUCCESS if NotificationEntry is valid.
In Windows 7 and later versions of Windows, this function is obsolete and is provided only to support existing drivers. Use the IoUnregisterPlugPlayNotificationEx routine instead.
Drivers should unregister a notification first, then free any related context buffer.
A driver cannot be unloaded until it removes all of its PnP notification registrations because there is a reference on its driver object for each active registration.
|Windows version||Available starting with Windows 2000.|
|Header||wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)|
|DDI compliance rules||PowerIrpDDis, HwStorPortProhibitedDDIs|