SHGetDiskFreeSpaceEx function shell32
Retrieves disk space information for a disk volume.
BOOL SHGetDiskFreeSpaceExW(
LPCWSTR pszDirectoryName,
ULARGE_INTEGER *pulFreeBytesAvailableToCaller,
ULARGE_INTEGER *pulTotalNumberOfBytes,
ULARGE_INTEGER *pulTotalNumberOfFreeBytes
);
Implementation
int SHGetDiskFreeSpaceEx(
Pointer<Utf16> pszDirectoryName,
Pointer<Uint64> pulFreeBytesAvailableToCaller,
Pointer<Uint64> pulTotalNumberOfBytes,
Pointer<Uint64> pulTotalNumberOfFreeBytes) =>
_SHGetDiskFreeSpaceEx(pszDirectoryName, pulFreeBytesAvailableToCaller,
pulTotalNumberOfBytes, pulTotalNumberOfFreeBytes);