How to retrieve USB flash drive mount point
Hardware & Devices
1
Posts
1
Posters
2
Views
1
Watching
-
using SetupDiXxx functions: I have got a DevicePath \\?\usbstor#disk&ven_fujitsu&prod_memorybird&rev_1.14#0739035033a1&0#{53f563 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.