Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetDiskFreeSpaceEx() in WIN32API
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00315812
Message ID:
00317894
Views:
32
>>My error here. Use StringToInteger(SUBSTR(lcstruct, 13, 2)) > 1000. The build number is in the high order word. Let me know if this fixes it.
>
>Yes, that fixed it.
>
>>
>>BTW, why not use the DISKSPACE() function rather than GetDiskFreeSpace() or SYS(2020) for this?
>
>In this instance we are interested in the FULL size of the drives - we do an inventory of our hardware, cca 150 workstations, trough a ‘stealth’ program that runs at logon.

I understood that, but on pre-OSR2 machines, DISKSPACE() should return the same value as GetDiskFreeSpace(). I believe that the reason that both DISKSPACE() and SYS(2020) report erroneous results on larger drives is that they call GetDiskFreeSpace(). Or am I missing something. Just trying to save you some work here< g >.

>Q: Isn’t GetDiskFreeSpace() misleading, I’d call it GetDiskSpace()?

Kind of, but I think it was named that way for backward compatibility with Win16, but I'm not 100% certain of that.
George

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

Click here to load this message in the networking platform