Hello
I register pnp notification like this:
IoRegisterPlugPlayNotification(EventCategoryDeviceInterfaceChange,
PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES,
const_cast<GUID*>(&GUID_DEVINTERFACE_PARCLASS),
driver,
main::pnp_notification,
nullptr,
&main::notification_entry);
From Msdn:
PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES
Only valid with an EventCategory of EventCategoryDeviceInterfaceChange. If set, the PnP manager calls the driver callback routine for each device interface instance that is currently registered and active and registers the callback routine for future arrivals or removals of device interface instances.
However my callback only called for new interfaces.
Am I right that callback should be called for existing interfaces and this is windows bug or have I misunderstood something ?
Testing on latest 10x64