http://www.codeproject.com/Articles/13530/Eject-USB-disks-using-C писал(а):
GetVolumeNameForVolumeMountPoint functionTo match Windows volumes with logical disks (algorithm step 3), there is a trick to know. First of all, let me say that all Windows volume can be uniquely addressed with a specific syntax of the form "\?Volume{GUID}" where GUID is the GUID that identifies the volume.
When enumerating volumes devices (using the Volume Device Class Guid GUID_DEVINTERFACE_VOLUME, do not worry, the VolumeDeviceClass wraps it), the volume device path can be used directly in a call to GetVolumeNameForVolumeMountPoint, if "" is appended to it, although it is not strictly speaking a volume name.
Не оно?