Windows: Maximum Valid Size for REG.DAT and .INI FilesLast reviewed: November 23, 1994Article ID: Q78346 |
The information in this article applies to:
SUMMARYThe maximum valid size for a REG.DAT or .INI file is 64 kilobytes (K). In some instances, however, problems occur when these files are greater than 32K.
MORE INFORMATIONIf an application uses the standard Windows application program interface (API) calls to access the .INI files, the limit is 64K. Examples of these standard API calls are GetPrivateProfileString() and WritePrivateProfileString(). If, for example, the WIN.INI file exceeds 64K, the information beyond 64K is ignored, and Windows may behave unpredictably--system configuration changes may not be implemented, fonts may be missing, printer information may be missing, and default information from applications may not be saved. If an application uses a SIGNED INT instead of an UNSIGNED INT to point to the file size, the size limit for these files is 32K. Some third-party applications may be unable to read .INI files, including the WIN.INI file, if they are larger than 32K. NOTE: Page 89 of the "Microsoft Windows Resource Kit" (WRK) for version 3.0 incorrectly states that the maximum size of the WIN.INI file is 32K.
SysEditThe Microsoft Windows SysEdit program provided with Windows cannot correctly edit a file larger than 30,000 bytes. If SysEdit does load a file larger than 30,000 bytes, you can delete text, but you cannot type any text until you reduce the file size to 29,999 bytes or fewer. The largest file SysEdit can load is between 30,000 bytes and 53K, depending on your system. If you load a file large than 30,000 bytes, you may receive the following error message:
<Filename> Cannot open this file.If the large file you are trying to open is the WIN.INI file, only part of it may load, and you may receive the following two error messages:
C:\CONFIG.SYS Cannot open this file C:\AUTOEXEC.BAT Cannot open this file |
KBCategory: kbtool kbdocerr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |