Solved

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

Posted on 2003-11-07
7
889 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now