home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l440 / 2.ddi / CHAP5 / TSR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-26  |  1.4 KB  |  57 lines

  1. /* TSR Prototype file and common variables */
  2.  
  3. #define INTERRUPT void interrupt far
  4.  
  5. typedef struct {
  6.     unsigned es, ds, di, si, bp, sp;
  7.     unsigned bx, dx, cx, ax, ip, cs, flags;
  8.     } INTERRUPT_REGS;
  9.     
  10. typedef void (interrupt far *INTVECT)();
  11.  
  12. /* Prototypes for functions in INDOS.C */
  13. int   DosBusy(void);
  14. int   Int28DosBusy(void);
  15. void  InitInDos(void);
  16.  
  17. /* Prototypes for functions in PSP.C */
  18. unsigned GetPSP(void);
  19. void  SetPSP(unsigned segPSP);
  20.  
  21. /* Prototypes for functions in TSRUTIL.ASM */
  22. int   far   deinstall(void);
  23. void  far   init_intr(void);
  24. void  far   idle_int_chain(void);
  25. void  far   init_intr(void);
  26.  
  27. void  interrupt far   new_int10(void);
  28. void  interrupt far   new_int13(void);
  29. void  interrupt far   new_int25(void);
  30. void  interrupt far   new_int26(void);
  31.  
  32. void  far   timer_int_chain(void);
  33.  
  34. /* Prototypes for functions in STACK.ASM */
  35. void  far   set_stack(void);
  36. void  far   restore_stack(void);
  37.  
  38. /* Prototypes for functions in EXTERR.C */
  39. void  GetExtErr(struct ExtErr * ErrInfo);
  40. void  SetExtErr(struct ExtErr * ErrInfo);
  41.  
  42. struct   ExtErr
  43. {
  44.    unsigned int errax;
  45.    unsigned int errbx;
  46.    unsigned int errcx;
  47. };
  48.  
  49. /* Prototypes for functions in DOSSWAP.C */
  50. int   InitDosSwap(void);
  51. int   SaveDosSwap(void);   
  52. void  RestoreDosSwap(void);
  53.  
  54. /* Pointer defined in INDOS.C */
  55. extern char far *   indos_ptr;
  56. extern char far *   crit_err_ptr;
  57.