title: GetDiskFreeSpaceEx with compressed disk
body: <p>I want to get the free space on a compressed disk to show it to a end user. I'm using C++, MFC on Windows 2000 and later. The Windows API offers the <code><a href="http://msdn.microsoft.com/en-us/library/aa364937%28VS.85%29.aspx" rel="nofollow noreferrer">GetDiskFreeSpaceEx()</a></code> function.</p>
  
  <p>However, this function seems to return the "uncompressed" sized of the data. This cause me some problem.</p>
  
  <p>For example :
   - Disk size is 100 GB
   - Data size is 90 GB
   - Compressed data size is 80 GB</p>
  
  <p>The user will see that the disk is 90% full, but in reality, it is only 80% full.</p>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>As Gleb pointed out, the function is returning the good information.</p>
  
  <p>So here is the new question : is there a way to get both the compressed size and the uncompressed one?</p>