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
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. How to retrieve USB flash drive mount point

How to retrieve USB flash drive mount point

Scheduled Pinned Locked Moved Hardware & Devices
questionadoberegextutorial
1 Posts 1 Posters 2 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.
  • M Offline
    M Offline
    mmhu
    wrote on last edited by
    #1

    using SetupDiXxx functions: I have got a DevicePath \\?\usbstor#disk&ven_fujitsu&prod_memorybird&rev_1.14#0739035033a1&0#{53f56­3 07-b6bf-11d0-94f2-00a0c91efb8b}. then use function GetLogicalDrives get all removable drives : A:\, I:\. Then I feed all these removable drive mountpoint to function GetVolumeNameForVolumeMountPoint but the volumeName returned from the function: \\?\Volume{84ec96be-1682-11db-8e5c-001111c4d88f} doesn't match with the device path. So how can I determine which removable drive in the list is the one for the USB flash drive??? I need exact drive letter for the USB flash drive plugged into the PC in order to access files stored in it.

    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