Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>b_vmode()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_vmode()


Syntax:     b_vmode()

Purpose:    Detect current video environment

Arguments:  None

Returns:    A numeric value

            1  MDPA Monochrome Display Adapter
            2  CGA  Color Graphics Adapter
            3  EGA  Enhanced Graphics Adapter
            4  MCGA MultiColor Graphics Array
            5  VGA  Video Graphics Array
            6  HGC  Hercules graphics cards

Library:    MICROSYS.LIB

----------------------------------- Example ----------------------------------

   if( (vid_mode := b_vmode()) != 5 )
      qout("VGA required to run this program!")
      quit
   endi

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson