USB Mass Storage - API for safe remove from application

M

Mark Kraft

Is there an API function that will allow me to perform function of the safe
remove hardware icon from within my application?

thanks, much appreciated - this is the only place to get good answers!
--
Mark Kraft
Design Engineer
Lehigh Electric Products Co.
Tel: 610-395-3386
Fax: 610-395-7735
email: (e-mail address removed)
website: www.lehighdim.com
 
M

Mark Kraft

Thanks Brad.

Since I posted I did track down a bit of code that uses this function and
implemented it in my application. Anyone interested here is the link:

http://www.codeproject.com/useritems/RemoveDriveByLetter.asp

In addition, is another bit of code to find and list all usb drives,
including those that appear as fixed ( usb-ide). This code needed a little
tweaking.

http://www.codeproject.com/w2k/usbdisks.asp

listening for the following mesages will allow an application to know if a
drive has been installed or removed. WM_DEVICECHANGE, wparam -
DBT-DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE

Hopefully this will help someone else in the future without doing alot of
surfing.

Mark
 

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