DOCUMENT:Q82711 26-SEP-1999 [win95x] TITLE :How EMM386 and Windows 3.1 Relate PRODUCT :Microsoft Windows 95.x Retail Product PROD/VER:WINDOWS:3.1,3.11 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows versions 3.1, 3.11 ------------------------------------------------------------------------------- SUMMARY ======= This article describes how Microsoft Windows handles memory on a system running EMM386.EXE. MORE INFORMATION ================ Include/Exclude Precedence -------------------------- An X= parameter added to the EMM386.EXE device line is directly adopted by Windows. Any EMMInclude= or EMMExclude= entry is overridden by any X= parameter on the EMM386.EXE device line in the CONFIG.SYS file. For example, the following line in your CONFIG.SYS takes precedence over any conflicting entry: device=c:\windows\emm386.exe X=C000-CFFF noems When Windows executes, it takes this information before it checks the SYSTEM.INI file. Even if the SYSTEM.INI file contains a contradictory line, for example: EMMInclude=C000-CFFF Windows keeps the EMM386.EXE parameter. The same precedence that an EMM386.EXE exclusion takes is true for the I= (inclusion) parameter. DMA Buffer Size Parameter ------------------------- The D= (DMA buffer size) parameter is not adopted by Windows. If it is necessary to allocate a larger DMA buffer for EMM386.EXE, it is probably necessary to add the following to the CONFIG.SYS file. For example, add: device=c:\windows\emm386.exe D=96 noems This would affect anything running under MS-DOS. However, when Windows is started, the DMA buffer size returns to its default. For the above example, you should also add the following line to the [386Enh] section of the SYSTEM.INI file: DMABufferSize=96 REFERENCES ========== For more information on EMM386.EXE, see the "Microsoft Windows User's Guide" version 3.1 manual. For information on using the SYSTEM.INI file, see the SYSINI.WRI file in the Windows subdirectory. Additional query words: 3.10 ====================================================================== Keywords : Technology : kbWin3xSearch kbZNotKeyword3 kbWin310 kbWin311 Version : WINDOWS:3.1,3.11 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.