Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows 95 and GetDiskFreeSpaceEx
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00528186
Message ID:
00528364
Views:
14
>>If the local disk is partitioned, say at 2 gb, then the value returned will correspond to the size of the logical drive, not the physical one. For example, say you have a 4 gb drive divided equally into 2 logical drives, say C: and D:. GetDiskFreeSpaceEx() would only return 2 gb for either. If it's not partitioned, the function should return 4 gb. Unfortunately, I don't have a Win95 box easily available to test. Further, I don't have an NT server to bang it off of either. Maybe tomorrow I can run that test.
>
>As far as I know, it's not partitioned. Besides, it doesn't explain, why I got different results from my Windows 95 computer and the server itself. May be somebody else can test it? I know, we had to upgrade long time ago :)

Older boxes (like the one I have at home) that are running Win95 (I'm running Win98SE), couldn't handle a drive larger than 2 gb without a software extension to the ROM BIOS. Perhaps this is the problem. AFAIK, the information regarding the size and free space come from the ROM BIOS which GetDiskFreeSpaceEx() deals with. If the OS doesn't recognize the software extension, that might explain it. I'll try testing tonight on my home machine and report back tomorrow. I do think, however, that I've tried this before and gotten the correct results back.
George

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

Click here to load this message in the networking platform