Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bytes in a directory
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00088089
Message ID:
00088654
Views:
41
>>Mike,
>>
>>Assuming that the parameter list is the same, GetDiskFreeSpaceEx() doesn't seem to do it either. It certainly didn't when I tried it on my drive.
>
>George,
>
>Oops, I didn't note that you were looking for cluster size. Sorry, GetDiskFreeSpaceEX parameter list is different and will not return you cluster info. Afraid you can't rely on the GetDiskFreeSpace returning correct cluster info according to MS docs for Win95.
>
>"The GetDiskFreeSpace function returns incorrect values for volumes that are larger than 2 gigabytes. The function caps the values stored into *lpNumberOfFreeClusters and *lpTotalNumberOfClusters so as to never report volume sizes that are greater than 2 gigabytes.
>Even on volumes that are smaller than 2 gigabytes, the values stored into *lpSectorsPerCluster, *lpNumberOfFreeClusters, and *lpTotalNumberOfClusters values may be incorrect. That is because the operating system manipulates the values so that computations with them yield the correct volume size."
>
>This does not appear to be a problem on NT. I tested with 4.3 Gig under NTFS and it worked. Guess you'll have to get cluster size a differnet way in Win95.
>
>Mike

Mike,

A note and a question or two.

Since the API is case sensitive, in order to get this function declared you need to make the "x" in lower case (GetDiskFreeSpaceEx).

The values returned, in some cases, seem to be unsigned integers (they come back as negatives in VFP). They need to be converted.

Where did you find the declaration and what is it. If you could post it or send it to me I'd be apprecciative.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform