Category : C Source Code
Archive   : XLIB06.ZIP
Filename : XDETECT.H

 
Output of file : XDETECT.H contained in archive : XLIB06.ZIP
/*-----------------------------------------------------------------------
;
; XDETECT - header file
;
;
;
; ****** XLIB - Mode X graphics library ****************
; ****** ****************
; ****** Written By Themie Gouthas ****************
;
; [email protected]
; [email protected]
;
; Terminology & notes:
; VRAM == Video RAM
; SRAM == System RAM
; X coordinates are in pixels unless explicitly stated
;
;-----------------------------------------------------------------------*/

#ifndef _XDETECT_H_
#define _XDETECT_H_

#define I8086 0
#define I80186 1
#define I80286 2
#define I80386SX 3
#define I80386DX 4
#define I80486 5

#define NoGraphics 0
#define MDA 1
#define CGA 2
#define EGAMono 3
#define EGAColor 4
#define VGAMono 5
#define VGAColor 6
#define MCGAMono 7
#define MCGAColor 8

#define BUS_MOUSE 1
#define SERIAL_MOUSE 2
#define INPORT_MOUSE 3
#define PS2_MOUSE 4
#define HP_MOUSE 5

/* VARIABLES =========================================================== */

extern WORD MouseButtonCount; /* number of mouse buttons */
extern WORD MouseVersion; /* mouse driver version */
extern WORD MouseType; /* mouse type */
extern WORD MouseIRQ; /* mouse IRQ number */

/* FUNCTIONS =========================================================== */

#ifdef __cplusplus
extern "C" {
#endif

int x_graphics_card(void); /* Detect installed Graphics card type */
int x_processor(void); /* Detect processor type */
int x_coprocessor(void); /* Detect math co-processor type */
int x_mousedriver(void); /* Detect math co-processor type */

#ifdef __cplusplus
}
#endif

#endif




  3 Responses to “Category : C Source Code
Archive   : XLIB06.ZIP
Filename : XDETECT.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/