Stopping a USB device
-
I need my application to stop a USB device, so I do not get the windows 'Unsafe Removal' message when the device is disconnected. Anyone know how to do this ?
-
I need my application to stop a USB device, so I do not get the windows 'Unsafe Removal' message when the device is disconnected. Anyone know how to do this ?
Not sure how it can be done from an appln, but if u writing the driver for your USB device, and in the IRP_MN_QUERY_CAPABILITIES handler, if u set the following flag, stack->Parameters.DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE; U will not get the Unsafe removal dialog.. regds, Shiva P
-
Not sure how it can be done from an appln, but if u writing the driver for your USB device, and in the IRP_MN_QUERY_CAPABILITIES handler, if u set the following flag, stack->Parameters.DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE; U will not get the Unsafe removal dialog.. regds, Shiva P
Thanks for your reply, but this will not help me because I have not written my own driver. My device is using some default driver. (The device I'm using is a ide dvd-rom).