@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The GetVolumeNameForVolumeMountPoint API !!!!C# Signature: [DllImport("kernel32.dll", SetLastError = true)] 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) { 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! Documentation: GetVolumeNameForVolumeMountPoint@msdn on MSDN
Edit kernel32.GetVolum...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.