home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / spxdos.exe / CHAT.H < prev    next >
Text File  |  1995-01-26  |  2KB  |  75 lines

  1. /******************************************************************************
  2.  *
  3.  *    Program Name:    TALK_TO.ME 
  4.  *
  5.  *    Filename:    TALK.H -- 10/25/88 
  6.  *
  7.  *    Purpose:  Include file for the talk_to.me program
  8.  *
  9.  ******************************************************************************/
  10.  
  11. /* Program values */
  12. #define        NUM_RECEIVE_ECBS     20
  13. #define        NUM_SEND_ECBS        20
  14. #define        SESSION_SOCKET         0x7654
  15. #define        SPX_INSTALLED         255
  16. #define        TERMINATING_PACKET     0xFE
  17. #define        FALSE                0
  18.  
  19. /* Screen values for the entire screen */
  20. #define        MAX_COL     80
  21. #define        MAX_ROW     25
  22. #define        TOP          0
  23. #define        BOTTOM         20
  24. #define        RIGHT_SIDE     79
  25. #define        LEFT_SIDE      0
  26. #define        MID_SCREEN     10
  27.  
  28. /* Screen values for the message boxes */
  29. #define        TOP_SEND_ROW         13
  30. #define        LAST_SEND_ROW         19
  31. #define        TOP_RECEIVE_ROW         3
  32. #define        LAST_RECEIVE_ROW      9
  33. #define        FIRST_TEXT_COL          2
  34. #define        LAST_TEXT_COL         78
  35.  
  36. /* Border characters */
  37. #define        UPPER_LEFT         0xD5
  38. #define        UPPER_RIGHT     0xB8
  39. #define        LOWER_LEFT         0xD4
  40. #define        LOWER_RIGHT     0xBE
  41. #define        L_INTERSECT     0xC6
  42. #define        R_INTERSECT     0xB5
  43. #define        HORIZONTAL         0xCD
  44. #define        VERTICAL         0xB3
  45.  
  46. /* Attribute values */
  47. #define        STOPBIT     0x20
  48. #define        BLANK         0x0700
  49.  
  50. /* Keystroke values */
  51. #define        BACKSPACE      8
  52. #define        ENTER         13
  53. #define        ESCAPE         27
  54. #define        TAB             9
  55.  
  56. /* Video functions and interrupts */
  57. #define        CURSOR_SIZE 1
  58. #define        SET_CURSOR     2
  59. #define        VIDEO         0x10
  60. #define        SCROLL_UP     6
  61.  
  62. // typedef    unsigned int    WORD;
  63.  
  64. typedef struct     {
  65.             WORD    hiNode;
  66.             long    loNode;
  67.         } NETWORK_NODE;
  68.  
  69.  
  70. typedef struct 
  71.         {
  72.         BYTE    network[4];
  73.         BYTE     node[6];
  74.         } NETWORK_ADDR;
  75.