Calculating free disk space
문제
What is the best method for calculating free disk space using C++ only. My target platform is WinCE but most of the file operations are the same as normal Windows.
해결책
You mean usage as in how much space is left? then try GetDiskFreeSpace()
Or do you mean, number of reads/writes/current files open, speed etc?
다른 팁
OpenStore + GetStoreInfo. STOREINFO gets you the used size, BytesPerSector * (NumSectors - FreeSectors).
제휴하지 않습니다 StackOverflow