Ejemplo n.º 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
        }
Ejemplo n.º 2
0
 public uint GetDriveSectorSize(string path)
 {
     WinNative.GetDiskFreeSpace(Path.GetPathRoot(path), out _, out var size, out _, out _);
     return(size);
 }