Bob Spelten wrote: > Thats about 2GB while it should be 4GB free on a 6GB partition. > All my partitions give exactly the same numbers, they all have more than > 4GB free. > Also QPAC2 Files reports 2048MB for both free and total numbers. > My QPC2 (3.32/3.12) runs under W98SE.
Hm yes, W98, that's the clue. The Microsoft documentation to the function GetDiskFreeSpace mentions this: "Windows Me/98/95: For volumes that are greater than 2 GB, the GetDiskFreeSpace function may return misleading values. The function caps the values that are stored into *lpNumberOfFreeClusters and *lpTotalNumberOfClusters so as to never report volume sizes that are greater than 2 GB. On volumes that are less than 2 GB and that have more than 64 actual sectors per cluster, *lpSectorsPerCluster will be capped at 64 and the values that are stored into *lpSectorsPerCluster, *lpNumberOfFreeClusters, and *lpTotalNumberOfClusters will be incorrect. That is because the operating system adjusts the values so that computations with them yield the correct volume size with the capped *lpSectorsPerCluster." Yeah, great. Must wait for me to be in a really good mood to bother to work around this. Marcel _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
