Hi,
In driver A i use a function IoRegisterPlugPlayNotification and expect to get notification GUID_DEVICE_INTERFACE_ARRIVAL when driver B will use WdfDeviceCreateDeviceInterface & WdfDeviceSetDeviceInterfaceState(enble) .
Once I got notification in A.
Now if Driver B unloaded of even use WdfDeviceSetDeviceInterfaceState(disable).
I expect to get notification about this as GUID_DEVICE_INTERFACE_REMOVAL.
But, as I see in MS doc :
http://msdn.microsoft.com/en-us/library/windows/hardware/ff545432(v=vs.85).aspx
“A driver can disable and re-enable a device interface if necessary. For example, if a driver determines that its device has stopped responding, the driver can call WdfDeviceSetDeviceInterfaceState to disable the device’s interfaces and prohibit applications from obtaining new handles to the interface. (Existing handles to the interface are not affected.)”
Why “Existing handles to the interface are not affected” ?
How can l get notification for interface disable ?
is TARGET_DEVICE_CUSTOM_NOTIFICATION more suitble for such needs?
Thank you in advance