GetVolumePathName
[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetVolumePathName(
string lpszFileName,
StringBuilder lpszVolumePathName,
uint cchBufferLength
);
Microsoft documentation: Link
Last updated