GetDiskFreeSpaceEx function kernel32
Retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread.
BOOL GetDiskFreeSpaceExW(
[in, optional] LPCWSTR lpDirectoryName,
[out, optional] PULARGE_INTEGER lpFreeBytesAvailableToCaller,
[out, optional] PULARGE_INTEGER lpTotalNumberOfBytes,
[out, optional] PULARGE_INTEGER lpTotalNumberOfFreeBytes
);
Implementation
int GetDiskFreeSpaceEx(
Pointer<Utf16> lpDirectoryName,
Pointer<Uint64> lpFreeBytesAvailableToCaller,
Pointer<Uint64> lpTotalNumberOfBytes,
Pointer<Uint64> lpTotalNumberOfFreeBytes) =>
_GetDiskFreeSpaceEx(lpDirectoryName, lpFreeBytesAvailableToCaller,
lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes);