Previous Next

Registering for Device Interface Change Notification

A driver registers for notification of device interface arrival and removal events by calling IoRegisterPlugPlayNotification.

The following information applies to calling this routine for device interface change notification:

A driver that opens a handle to a device in response to a device interface arrival notification should register for EventCategoryTargetDeviceChange events on the device. (See Using PnP Target Device Change Notification.)

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