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