# Function Reference

# _WinAPI_GetCompressedFileSize

Retrieves the actual number of bytes of disk storage used to store a specified file

#include <WinAPIFiles.au3>
_WinAPI_GetCompressedFileSize ( $sFilePath )

## Parameters

$sFilePath | The name of the file.

## Return Value

Success: | The actual number of bytes of disk storage.
Failure: | 0 and sets the @error flag to non-zero, @extended contain the system last error.

## Remarks

If the file is not located on a volume that supports compression or sparse files, or if the file is not compressed or a sparse file, the value obtained is the actual file size.

## See Also

Search GetCompressedFileSize in MSDN Library.