Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!gatech!rutgers!ucsd!nprdc!snguyen From: snguyen@nprdc.arpa (Son Nguyen) Newsgroups: comp.lang.c Subject: How to recognize CGA and EGA/VGA ? Message-ID: <1205@arctic.nprdc.arpa> Date: 20 Dec 88 19:55:56 GMT Sender: news@nprdc.arpa Reply-To: snguyen@nprdc.arpa (Son Nguyen) Organization: Navy Personnel R&D Center, San Diego Lines: 8 Does anyone know how to detect whether an IBM PC has a CGA or a EGA/VGA ? What I mean is that how can I write a small function just to find out about my machine graphic adapter ? I know how to access the memory for CGA but I don't know how for EGA/VGA. Thanks. Peter Nguyen