Solved

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

Posted on 2003-11-07
7
928 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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