Redigera

Dela via


Obtaining the Size of a Sparse File

Use the GetCompressedFileSize function to obtain the actual size allocated on disk for a sparse file. This total does not include the size of the regions which were deallocated because they were filled with zeros. Use the GetFileSize function to determine the total size of a file, including the size of the sparse regions that were deallocated.