System trying to remove devices

Hi All
We are writing a PnP driver for W2K. The problem is that sometimes when we
create a new FDO, it gets IRP_MN_QUERY_REMOVE request. This request is not
initiated in any form by us or by the bus driver. We reply with
STATUS_UNSUCCESSFUL, get IRP_MN_CANCEL_REMOVE from the PnP Manager, and then
see a dialog indicating that the system has to be rebooted for the device to
work properly. We do not reboot and then everything works just fine.
Before the QUERY_REMOVE request the device gets QUERY_DEVICE_RELATIONS
request with RemovalRelations type. We tried to return STATUS_NOT_SUPPORTED
or STATUS_UNSUCCESSFUL - no effect.
The question is why does the PnP Manager send the QUERY_REMOVE requests, can
we prevent it or can we prevent the dialog from showing up?
Any help is appreciated
Thanks
Gregory


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com