GetDiskFreeSpaceW method

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

Implementation

int GetDiskFreeSpaceW(
  ffi.Pointer<ffi.Uint16> lpRootPathName,
  ffi.Pointer<ffi.Uint64> lpSectorsPerCluster,
  ffi.Pointer<ffi.Uint64> lpBytesPerSector,
  ffi.Pointer<ffi.Uint64> lpNumberOfFreeClusters,
  ffi.Pointer<ffi.Uint64> lpTotalNumberOfClusters,
) {
  return (_GetDiskFreeSpaceW ??=
      _dylib.lookupFunction<_c_GetDiskFreeSpaceW, _dart_GetDiskFreeSpaceW>(
          'GetDiskFreeSpaceW'))(
    lpRootPathName,
    lpSectorsPerCluster,
    lpBytesPerSector,
    lpNumberOfFreeClusters,
    lpTotalNumberOfClusters,
  );
}