public static string GetVolumeName(string MountPoint)
{
const int MaxVolumeNameLength = 100;
StringBuilder sb = new StringBuilder(MaxVolumeNameLength);
if (!GetVolumeNameForVolumeMountPoint(MountPoint, sb, (uint) MaxVolumeNameLength))
Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
return sb.ToString();
}
Alternative Managed API:
Do you know one? Please contribute it!
The GetVolumeNameForVolumeMountPoint API
10/6/2010 9:58:07 PM - -212.49.46.94
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).