Platform SDK: Win32 API |
Windows 95, OEM Service Release 2 supports the GetDiskFreeSpaceEx function.
Under Windows 95, including OEM Service Release 2, the existing Win32 function GetDiskFreeSpace caps the amount of free or total disk space reported on large drives to 2 gigabytes. Under OEM Service Release 2, in order to maintain compatibility with existing applications, even on volumes that are smaller than 2 gigabytes, GetDiskFreeSpace may return incorrect values.
The GetDiskFreeSpaceEx function obtains correct values for all volumes, including those that are larger than 2 gigabytes. New Win32-based applications should use the GetDiskFreeSpaceEx function. It is supported on Windows 95 OEM Service Release 2 and on Windows NT 4.0. As with all Windows 95, OEM Service Release 2 features, however, applications that call GetDiskFreeSpaceEx should be prepared to fall back to the GetDiskFreeSpace function to maintain compatibility with older Win32 implementations.