The GetFreeSpace function is obsolete.
This function is provided in Win32 only for compatibility with earlier versions of Windows. New Win32 applications should not use this function.
Win32 applications should use the GlobalMemoryStatus function.