By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,247 Members | 1,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,247 IT Pros & Developers. It's quick & easy.

The Removable Storage Manager, WM_DEVICECHANGE, and other fun stuff...

P: n/a
I'm writing a utility that needs to be aware of media (CD, DVD, Zip
disk, usb stick, etc) insertions and removals. Which seems to be more
of a problem than I original imagined.

I can't use any auto-run features because this is actually running on
Windows XP Embedded... so that's the first thing to be aware of.

Using WM_DEVICECHANGE works about half the time...that is, it works when
a DVD or CD is inserted, but it does not work for Zip disks, usb sticks,

I looked into the Removable Storage Manager, or RSM, but the
descriptions for it on MSDN changes enough that I'm not 100% that it is
applicable. I'd write a test application but the definition is rather
deep and there seem to be some key elements missing from the documentation.

So...essentially is there a sure fire way to detect insertion and
removal of all types of removable media?

Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.