The information in this article applies to:
SYMPTOMSWhen it is called on a Windows 95-based or Windows 98-based computer, the Win32 GetFileSize function does not support files larger than 4,294,967,295 bytes (4 gigabytes - 1 byte). The value of *lpFileSizeHigh (if lpFileSizeHigh is not null) is always returned as 0 (zero), regardless of the actual file size. As a result, GetFileSize returns an incorrect size of less than 4 gigabytes (GB) for files that are 4 GB or larger. WORKAROUNDTo correctly determine the size of a file that may be 4 GB or larger, use the GetFileInformationByHandle function. STATUSMicrosoft has confirmed this to be a problem in Microsoft Windows 95 and Microsoft Windows 98 (all versions). MORE INFORMATIONThere are other Win32 functions that support huge files (4,294,967,295 bytes or larger), for which Windows 95 and Windows 98 do not provide huge-file support. These functions include:
The following functions may pass 64-bit values but have limitations under Windows 95 and Windows 98 or may not be supported under Windows 95 or Windows 98. These functions are documented in the current version of the Microsoft Platform SDK:
The following file I/O functions are not supported on Windows 95 or Windows 98:
Additional query words:
Keywords : win95 win98 kbAPI kbFileIO kbKernBase kbSDKWin32 kbWinOS95 kbWinOS98 win98se kbDSupport |
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |