home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / EEDRW23S.ZIP / CTRL-BRK.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-27  |  856 b   |  35 lines

  1. /*****************************************************************************
  2. * Module to trap ctrl-brk/hardware error and handle them gracefully.         *
  3. * Note the usage of GraphGen.c module is assumed.                 *
  4. *                                         *
  5. * Written by:  Gershon Elber            IBM PC Ver 1.0,    Jan. 1989    *
  6. *****************************************************************************/
  7.  
  8. #ifndef    CTRL-BRK-H
  9. #define CTRL-BRK-H
  10.  
  11. #ifndef LINE_LEN
  12. #define LINE_LEN 128
  13. #endif
  14.  
  15. #ifndef TRUE
  16. #define TRUE    -1
  17. #define FALSE    0
  18. #endif  TRUE
  19.  
  20. #define BIOS_CTRL_BRK    0x1b
  21.  
  22. #define IGNORE  0            /* Actions to take in hardware error */
  23. #define RETRY   1
  24. #define ABORT   2
  25.  
  26. /* And finally the prototypes of the external routines: */
  27.  
  28. extern int WasCtrlBrk;
  29.  
  30. void SetUpCtrlBrk(void);
  31. void RestoreCtrlBrk(void);
  32. void SetUpHardErr(void);
  33.  
  34. #endif    CTRL-BRK-H
  35.