home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 4.ddi / NETBIOS / CTAXIT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-04-18  |  1.6 KB  |  54 lines

  1. /*
  2.  *    System Dependent Application Message Handling
  3.  *    Net Bios
  4.  *
  5.  *    This program is the CONFIDENTIAL and PROPRIETARY property 
  6.  *    of FairCom(R) Corporation. Any unauthorized use, reproduction or
  7.  *    transfer of this program is strictly prohibited.
  8.  *
  9.  *      Copyright (c) 1987, 1988, 1989 FairCom Corporation
  10.  *    (Subject to limited distribution and
  11.  *     restricted disclosure only.)
  12.  *    *** ALL RIGHTS RESERVED ***
  13.  *
  14.  *    4006 West Broadway
  15.  *    Columbia, MO 65203
  16.  *
  17.  *
  18.  *    c-tree(R)    Version 4.3
  19.  *            Release C
  20.  *            February 7, 1989 17:30
  21.  *
  22.  */
  23.  
  24. #define CBRK_NONE    0    /* do nothing about ctrl-c */
  25. #define CBRK_DFL    1    /* abort on ctl-c */
  26. #define CBRK_IGN    2    /* ignore ctl-c */
  27.  
  28. #define CERR_NONE    0    /* do nothing about critical errors */
  29. #define CERR_DFL    1    /* use standard ignore,abort,retry prompts */
  30. #define CERR_FAIL    2    /* fail the dos call */
  31.  
  32.  
  33. /* set traps on abnormal terminations */
  34. /* 1st arg is mode for int 23 (control-c) ... CBRK_xxx */
  35. /* 2nd is mode for int 24 (hard err) ... CERR_xxx */
  36. void far set_abort_traps(COUNT,COUNT);
  37.  
  38. /*
  39.  * define what system should do with a control-C (interrupt 23)
  40.  * _NONE == don't trap, _DFL == clean up and abort, _IGN == ignore ctrl-c
  41.  */
  42.  
  43. #define CBRKmode CBRK_DFL    /* ctl-c causes call to STPUSR, then abort */
  44.  
  45. /*
  46.  * define what system should do when abort on critical error (interrupt 24)
  47.  * _NONE == don't trap, _DFL == display user prompt and clean up/abort if
  48.  * user selects abort, _FAIL == return DOS error 0x83 on critical errors
  49.  */
  50.  
  51. #define CERRmode CERR_DFL    /* error abort calls STPUSR, then abort */
  52.  
  53. /* end of ctaxit.h */
  54.