GetDiskFreeSpaceA method

int GetDiskFreeSpaceA(
  1. Pointer<Int8> lpRootPathName,
  2. Pointer<Uint64> lpSectorsPerCluster,
  3. Pointer<Uint64> lpBytesPerSector,
  4. Pointer<Uint64> lpNumberOfFreeClusters,
  5. Pointer<Uint64> lpTotalNumberOfClusters,
)

Implementation

int GetDiskFreeSpaceA(
  ffi.Pointer<ffi.Int8> lpRootPathName,
  ffi.Pointer<ffi.Uint64> lpSectorsPerCluster,
  ffi.Pointer<ffi.Uint64> lpBytesPerSector,
  ffi.Pointer<ffi.Uint64> lpNumberOfFreeClusters,
  ffi.Pointer<ffi.Uint64> lpTotalNumberOfClusters,
) {
  return (_GetDiskFreeSpaceA ??=
      _dylib.lookupFunction<_c_GetDiskFreeSpaceA, _dart_GetDiskFreeSpaceA>(
          'GetDiskFreeSpaceA'))(
    lpRootPathName,
    lpSectorsPerCluster,
    lpBytesPerSector,
    lpNumberOfFreeClusters,
    lpTotalNumberOfClusters,
  );
}