GetDiskFreeSpace function kernel32
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);