Registering for Hardware Profile Change Notification

A driver registers for notification of hardware profile changes by calling IoRegisterPlugPlayNotification.

The following information applies to calling this routine for hardware profile change notification:

  • Specify an EventCategory of EventCategoryHardwareProfileChange.

  • EventCategoryData must be NULL.

  • Specify a driver-defined Context, if appropriate, that the PnP manager will pass to the callback routine.

A driver removes notification registration by calling IoUnregisterPlugPlayNotification with the NotificationEntry returned by IoRegisterPlugPlayNotification.