views:

88

answers:

2

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.

+1  A: 

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?

Martin Beckett
Diskspace, I updated question. Ta
Chris
+1  A: 

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

Hans Passant
I used this also, thanks
Chris