示例#1
0
        public static uint GetDriveSectorSize(string path)
        {
#if !__MonoCS__ && !USE_UNIX_IO
            uint size;
            uint dontcare;
            WinNative.GetDiskFreeSpace(Path.GetPathRoot(path), out dontcare, out size, out dontcare, out dontcare);
            return(size);
#else
            return(0);
#endif
        }
示例#2
0
 public uint GetDriveSectorSize(string path)
 {
     WinNative.GetDiskFreeSpace(Path.GetPathRoot(path), out _, out var size, out _, out _);
     return(size);
 }