Getting Volume Name from Device Path in USB devices
问题 I've built a program using the Windows API that detects the insertion of some media (cd, usb...). The program returns the device path: \\\\?\\usb#vid_vvvv&pid_pppp#aaaaaaaaaaaaaaaa#{gggggggg-gggg-gggg-gggg-gggggggggggg} I am using the function GetVolumeNameForVolumeMountPoint to obtain the volume name by parsing the device interface path as reported here, but it seems that this feature is not working for USB devices. Any idea of how to get the volume name from the device path in case of