home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / t / tvgluetc.zip / INT15C.H < prev    next >
Text File  |  1988-02-22  |  1KB  |  37 lines

  1. /*
  2. **    INT15C.H - types and function prototypes.
  3. **    IBM Personal Computer - TopView C Interface Header File.
  4. **    Written for Borland Turbo C v1.5.
  5. */
  6.  
  7. typedef unsigned short WORD;    /* 16-bit value */
  8. typedef unsigned long DWORD;    /* 32-bit value */
  9. typedef void far *OBJECT;        /* object handle */
  10.  
  11. WORD pascal TopVer(void);    /* GET TOPVIEW VERSION (0 = NOT TOPVIEW) */
  12.  
  13. void pascal SetBit(            /* SETBIT POST FROM A 1ST-LEVEL INT HANDLER */
  14.     WORD bit                    /* bit to set */
  15. );
  16.  
  17. typedef struct { WORD bxreg, cxreg, dxreg, direg, esreg; } REGLIST;
  18.  
  19. void pascal SubCall(        /* TOPVIEW SUBROUTINE CALL */
  20.     WORD func_code,                /* function code */
  21.     REGLIST *call_args            /* registers to/from */
  22. );
  23.  
  24. typedef struct {            /* send message parameter list */
  25.     WORD num_args;                /* number of arguments */
  26.     DWORD arg[9];                /* 32-bit argument(s) */
  27. } PARMLIST;
  28.  
  29. void pascal SendMsg(        /* SEND MESSAGE TO TOPVIEW OBJECT */
  30.     WORD msg_num,                /* message number */
  31.     WORD mod_num,                /* object modifier */
  32.     OBJECT object_hdl,            /* object handle (0 = none) */
  33.     PARMLIST *msg_args            /* parameter list & return value(s) */
  34. );
  35.  
  36. /* end INT15C.H */
  37.