Solved

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

Posted on 2003-11-07
7
908 Views
Last Modified: 2013-12-03
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
0
Comment
Question by:moonrise
  • 2
7 Comments
 
LVL 8

Expert Comment

by:_corey_
ID: 9708839
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
 

Author Comment

by:moonrise
ID: 9709764
No, I don't know how to tell if a new device is plugged in
0
 
LVL 32

Accepted Solution

by:
jhance earned 250 total points
ID: 9714334
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
 

Author Comment

by:moonrise
ID: 9714930
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question