[DllImport("kernel32.dll", CharSet = CharSet.Unicode)] public static extern bool SHGetDiskFreeSpace( string pszVolume, out ulong pqwFreeCaller, out ulong pqwTotal, out ulong pqwFree );
Microsoft documentation: Link
Last updated 1 year ago