GetVolumeNameForVolumeMountPoint (kernel32)
Last changed: -174.228.137.208

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern bool GetVolumeNameForVolumeMountPoint(string
   lpszVolumeMountPoint, [Out] StringBuilder lpszVolumeName,
   uint cchBufferLength);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

public static string GetVolumeName(string MountPoint)
{
     StringBuilder sb = new StringBuilder();
     GetVolumeNameForVolumeMountPoint(MountPoint, sb, 100);
     return sb.ToString();
}

Alternative Managed API:

Do you know one? Please contribute it!

Documentation