Microsoft KB Archive/78435

= What Is EGA.SYS and What Is Its Function? =

Article ID: 78435

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a

-



This article was previously published under Q78435



SUMMARY
This article briefly describes the EGA.SYS file, why it is needed, and when it will be automatically installed by the MS-DOS 5.0 Setup program.



MORE INFORMATION
EGA.SYS is a device driver that allows different programs to be aware of the current state of the registers on an EGA video card. It is necessary because many registers on an EGA card can be written to by an application, but there is no way to read the registers to determine the current settings. This is a problem for programs such as MS-DOS Shell that must save and restore the computer screen.

The solution to this problem is to require programs to record the current state of the EGA video registers in the EGA.SYS file. A program that changes the state of the video display can determine current settings by checking EGA.SYS.

If EGA.SYS is not installed on a system that has an EGA video card, the screen may be unreadable after the user switches between two different graphics-oriented programs from within Shell.

The MS-DOS 5.0 Setup program installs the EGA.SYS driver in the CONFIG.SYS file on any computer that it detects as having an EGA video card.

Additional query words: 5.00 dosshell kbfest newfest

Keywords: KB78435

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.