Re: get free disk space in win32
- Posted by LarryMiller Dec 21, 2009
- 1163 views
jimcbrown said...
useless said...
Does this mean Eu v4 is not returning the correct disk sizes over 4gbytes due to a 32bit integer or atom limit?
useless
No.
You are confusing the GetFreeDiskSpaceEx() api function (used in the original code in this thread) with the GetFreeDiskSpace() api function (used in std/filesys.e).
The disk_metrics() function in EU4 uses the GetDiskFreeSpaceA() API function and this also returns currect results, at least on the NT platform. You do have to make the calculations yourself based on the values returned. I believe there are some issues when used on Win9x but this a limitation of the API function, not Eeuphoria.