USB Storage Cannot Be Stopped

S

Steve Macha

On a Desktop running Win2000, SP3,I invoke the hotplug.dll
within my C application to stop a USB Flash Memory storage
device using "Rundll.exe shell32.dll,Control_RunDll
hotplug.dll". I get the normal MicroSoft hotplug window
when I do this, but then I get the message "The
device 'Generic volume' cannot be stopped right now. Try
stopping the device again later" appears. After repeated
retries, I finally have to abandon the effort to get a
successful stop. But if I go click on the systray unplug
icon, I am able to stop the USB device sucessfully.

This is frustrating as my application requires USB storage
insertion and removal in an environment where the systray
and Windows desktop are intended to be hidden. USB
storage devices from different manufacturers all produce
same results.

Any ideas or suggestions gratefully received...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top