Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to retrieve drive letter of a USB device from WMI for a given DeviceID

How to retrieve drive letter of a USB device from WMI for a given DeviceID

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subrat Patnaik
    wrote on last edited by
    #1

    Hi all, i am using a function to retrieve drive letter of a USB device from WMI witht he supplied device id ("USB\VID\_0930&PID_652A\0F70985022G8HI") in the format as shown. using this device ID which i retrieve from win32_USBHub i have to get the drive letter for the USB device corresponding to the device ID. so can i get some help on how to map the drive letter for the corresponding device id from WMI?? Thanks..

    S H 2 Replies Last reply
    0
    • S Subrat Patnaik

      Hi all, i am using a function to retrieve drive letter of a USB device from WMI witht he supplied device id ("USB\VID\_0930&PID_652A\0F70985022G8HI") in the format as shown. using this device ID which i retrieve from win32_USBHub i have to get the drive letter for the USB device corresponding to the device ID. so can i get some help on how to map the drive letter for the corresponding device id from WMI?? Thanks..

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      Check this![^]

      -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

      My blog - Sharing My Thoughts, An Article - Understanding Statepattern

      1 Reply Last reply
      0
      • S Subrat Patnaik

        Hi all, i am using a function to retrieve drive letter of a USB device from WMI witht he supplied device id ("USB\VID\_0930&PID_652A\0F70985022G8HI") in the format as shown. using this device ID which i retrieve from win32_USBHub i have to get the drive letter for the USB device corresponding to the device ID. so can i get some help on how to map the drive letter for the corresponding device id from WMI?? Thanks..

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Did you see Win32_DiskDrive Class? of course its a thread but its vb[^].

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups