GetDiskFreeSpace function kernel32

int GetDiskFreeSpace(
  1. Pointer<Utf16> lpRootPathName,
  2. Pointer<Uint32> lpSectorsPerCluster,
  3. Pointer<Uint32> lpBytesPerSector,
  4. Pointer<Uint32> lpNumberOfFreeClusters,
  5. Pointer<Uint32> lpTotalNumberOfClusters
)

Retrieves information about the specified disk, including the amount of free space on the disk.

BOOL GetDiskFreeSpaceW(
  LPCWSTR lpRootPathName,
  LPDWORD lpSectorsPerCluster,
  LPDWORD lpBytesPerSector,
  LPDWORD lpNumberOfFreeClusters,
  LPDWORD lpTotalNumberOfClusters
);

Implementation

int GetDiskFreeSpace(
        Pointer<Utf16> lpRootPathName,
        Pointer<Uint32> lpSectorsPerCluster,
        Pointer<Uint32> lpBytesPerSector,
        Pointer<Uint32> lpNumberOfFreeClusters,
        Pointer<Uint32> lpTotalNumberOfClusters) =>
    _GetDiskFreeSpace(lpRootPathName, lpSectorsPerCluster, lpBytesPerSector,
        lpNumberOfFreeClusters, lpTotalNumberOfClusters);