GetCompressedFileSize function kernel32
Retrieves the actual number of bytes of disk storage used to store a specified file.
To learn more, see learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-getcompressedfilesizew.
Implementation
Win32Result<int> GetCompressedFileSize(
PCWSTR lpFileName,
Pointer<Uint32>? lpFileSizeHigh,
) {
final result_ = GetCompressedFileSizeW_Wrapper(
lpFileName,
lpFileSizeHigh ?? nullptr,
);
return .new(value: result_.value.u32, error: result_.error);
}