home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / VECTBAL2.ZIP / XDETECT.H < prev    next >
C/C++ Source or Header  |  1993-09-13  |  2KB  |  72 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XDETECT - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;-----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XDETECT_H_
  22. #define _XDETECT_H_
  23.  
  24. #define I8086    0
  25. #define I80186   1
  26. #define I80286   2
  27. #define I80386SX 3
  28. #define I80386DX 4
  29. #define I80486   5
  30.  
  31. #define NoGraphics 0
  32. #define MDA        1
  33. #define CGA        2
  34. #define EGAMono    3
  35. #define EGAColor   4
  36. #define VGAMono    5
  37. #define VGAColor   6
  38. #define MCGAMono   7
  39. #define MCGAColor  8
  40.  
  41. #define BUS_MOUSE     1
  42. #define SERIAL_MOUSE  2
  43. #define INPORT_MOUSE  3
  44. #define PS2_MOUSE     4
  45. #define HP_MOUSE      5
  46.  
  47. /* VARIABLES =========================================================== */
  48.  
  49. extern WORD MouseButtonCount;  /* number of mouse buttons */
  50. extern WORD MouseVersion;      /* mouse driver version    */
  51. extern WORD MouseType;         /* mouse type              */
  52. extern WORD MouseIRQ;          /* mouse IRQ number        */
  53.  
  54. /* FUNCTIONS =========================================================== */
  55.  
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59.  
  60.  int x_graphics_card(void);  /* Detect installed Graphics card type */
  61.  int x_processor(void);      /* Detect processor type */
  62.  int x_coprocessor(void);    /* Detect math co-processor type */
  63.  int x_mousedriver(void);    /* Detect math co-processor type */
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69. #endif
  70.  
  71.  
  72.