Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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