How to detect Drive type - Smart Media, Memory Stick, Compact Flash, etc...

Is there an API to detect the type of a drive - not just removable, but more details to know if it is Smart Media, Memory Stick, Compact Flash, etc...

Windows seems to know the type of the drive so maybe there is a way.

Thank you
moonriseAsked:
Who is Participating?
 
jhanceCommented:
Unfortunately, Windows does not differentiate between devices to this degree.  The class of device, REMOVABLE STORAGE, is as specific as it gets.

You may be able to "guess" based on the device name or some information you can glean from the driver but that is "iffy" since there are MANY MANY possibilities here.

Perhaps there is a better way to do what you're really trying to do here.  If you were to state your larger overall problem, a suggestion might be available.
0
 
_corey_Commented:
Do you want to know how to tell if a new device is plugged in?

I'd suggest first looking at RegisterDeviceNotification until I know more.
0
 
moonriseAuthor Commented:
No, I don't know how to tell if a new device is plugged in
0
 
moonriseAuthor Commented:
I use a TabControl to display the available drives and I would like to display the exact type like Windows XP does so that I can display the right picture for each drive
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.