views:

102

answers:

1

Does GetVolumeNameForVolumeMountPoint() return the GUID of a volume in c++?

GetVolumeNameForVolumeMmountPoint()
{
LPCTSTR lpszvolumeMountPoint,
LPTSTR lpszVolumeName,
DWORDcchBufferLength,
}

I mean if I am using a removeable disk. will the lpszVolumeName remained the same on the same computer? Does it return a certain ID for a certain volume everytime I insert the disk on my computer' USBport. And Make sure different disk's volumes will get different result? Many Thanks!

A: 

I found some documentation about the mount manager that states the GUID is permanently associated with the volume and it is persisted across system restarts.

Luke