Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3391436
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:48:12+00:00 2026-05-18T03:48:12+00:00

I am trying to figure out the device type for a particular drive. I’d

  • 0

I am trying to figure out the device type for a particular drive. I’d like to know how to do it on Mac OS X and Linux as well, but for now if that’s too much a Windows solution would suffice.

so, let’s say I have a drive H. I can determine if the device is a removable drive through the Win32 API function GetDriveType(). I can find that out on Mac OS X as well.

But what I can’t seem to find, in a reliable way, is the device type. Like, is it a USB Flash Drive, portable hard drive (PHD) etc.

Digging through the registries in Windows, I can’t seem to find much info as well. Although I’d prefer to use some API for that if possible, I’ll use the registry if required.

For now, what I’m interested in is.. is the drive a flash drive (so I can show a Usb flash drive icon in my program) or a portable hard drive (so, a PHD icon will be displayed).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:48:12+00:00Added an answer on May 18, 2026 at 3:48 am

    Is the device class what you want? If so you can try libusb (available for win32). Use libusb_get_device_descriptor function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure out if it's possible to access a Midi device (like
I'm trying to figure out if an iPhone can connect to another non-iPhone device
I'm trying to figure out how to request another Android device for permission to
I am trying to figure out what the common practice is. I know there
I am working on embedded device and trying to figure-out basics of opengl-es-2.0, I
I am trying to figure out how to detect if a drive is a
Right now it just adds \r\n\r\n I'm trying to figure out how to convert
I am trying to figure this out but am stumped a bit. What I
I'm trying to figure out how to search for other devices logged into a
Trying to figure out the best way to set up collection lists for users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.