Calculating free disk space

What is the best way to calculate free disk space using only C ++. My target platform is WinCE, but most file operations are the same as on regular Windows.

+3
source share
2 answers

Do you mean using both in how much space is left? then try GetDiskFreeSpace ()
Or do you mean that the number of open read / write / current files, speed, etc.?

+6
source

OpenStore + GetStoreInfo. STOREINFO gets the size you used, BytesPerSector * (NumSectors - FreeSectors).

+1
source

Source: https://habr.com/ru/post/1745458/


All Articles