Setvolumemountpoint

[DllImport("Kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetVolumeMountPoint(string lpszVolumeMountPoint,
   string lpszVolumeName
);

Microsoft documentation: Link

Last updated