home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lansystk.zip / INCLUDE / LANDIST / WCLDSI.H < prev   
C/C++ Source or Header  |  1998-05-08  |  8KB  |  154 lines

  1. /* wcldsi.h  DSI Interface Control Blocks                               */
  2. /************************************************************************/
  3. /* Change Activity:                                                     */
  4. /* @000 P0000000 920521 MJS: Initial code drop                          */
  5. /* @001 P0005448 940201 MJS: Change rc prefix to avoid conflict with    */
  6. /*                           ISDN network specific RCs                  */
  7. /* @A02 P0005722 940223 JIS: Undo the changes made for 5448. Refer to   */
  8. /*                           defect for explanation.                    */
  9. /* @A03 P0005768 940310 MJS: add versioning                             */
  10. /************************************************************************/
  11. #include "wcl1632.h"
  12.  
  13. extern WORD DSI(void *);
  14.  
  15. typedef                                 /* msg buffer header used       */
  16. STRUCT16 _START_DIAL                    /* privately by allc/free       */
  17. {
  18.   WORD   request_type;                  /* REQUEST_START_DIAL           */
  19.                                         /* Dial Services ind entry pt   */
  20.   VOID    (*post_addr)();
  21. } START_DIAL;
  22.  
  23. typedef                                 /* msg buffer header used       */
  24. STRUCT16 _MAKE_CALL                       /* privately by allc/free       */
  25. {
  26.   WORD   request_type;          /* REQUEST_MAKE_CALL                    */
  27.   BYTE   dir_entry[16];         /* outgoing call directory entry        */
  28.   BYTE   protocol_id;           /* requested protocol id                */
  29.   BYTE   reserved1;             /*                                      */
  30.   DWORD  call_identifier;       /* assigned by DSI                      */
  31.   BYTE   dial_out_cp[16];       /* Dial Out CP Name             @001    */
  32.   BYTE   dial_out_mac[12];      /* Dial Out CP Mac address      @001    */
  33.   BYTE   user_id[10];           /* user id for auto logon       @001    */
  34.   BYTE   reserved2[6];          /* for user id growth           @001    */
  35.   BYTE   password[40];          /* Password for auto logon      @001    */
  36.   WORD   number_count;          /* # of overriding numbers              */
  37.   WORD   number_wifs;           /* # of overriding numbers              */
  38.   BYTE   number_array[1];       /* array of phone number strings        */
  39.   BYTE   wif_array[1];          /* array of 6 byte binary addresses     */
  40. } MAKE_CALL;
  41.  
  42. typedef                                 /* msg buffer header used       */
  43. STRUCT16 _LOCAL_HANGUP                    /* privately by allc/free       */
  44. {
  45.   WORD   request_type;          /* REQUEST_LOCAL_HANGUP                 */
  46.   DWORD  call_identifier;       /* call to be cleared                   */
  47. } LOCAL_HANGUP;
  48.  
  49. typedef                                 /* msg buffer header used       */
  50. STRUCT16 _START_AUTOANSWER                /* privately by allc/free       */
  51. {
  52.   WORD   request_type;          /* REQUEST_START_AUTOANSWER             */
  53.   BYTE   dir_entry[16];         /* Incoming call directory entry        */
  54.   BYTE   protocol_id;           /* requested protocol id                */
  55.   BYTE   reserved;              /* word boundry                         */
  56.   DWORD  ans_identifier;        /* assigned by DW                       */
  57.   BYTE   answer_cp[16];         /* Name of CP to put in answer  @001    */
  58.   BYTE   answer_mac[12];        /* Dial Out CP Mac address      @001    */
  59.   WORD   display_flag;          /* Notification of session events       */
  60. } START_AUTOANSWER;
  61.  
  62. typedef                                 /* msg buffer header used       */
  63. STRUCT16 _STOP_AUTOANSWER                 /* privately by allc/free       */
  64. {
  65.   WORD   request_type;          /* REQUEST_STOP_AUTOANSWER              */
  66.   DWORD  ans_identifier;        /* answer id to be stopped              */
  67. } STOP_AUTOANSWER;
  68.  
  69. typedef                                 /* msg buffer header used       */
  70. STRUCT16 _START_QUERY                     /* privately by allc/free @001  */
  71. {
  72.   WORD   request_type;          /* REQUEST_START_QUERY                  */
  73.   BYTE   query_string[80];      /* string to query for (ie.             */
  74.                                 /* \layer\component)                    */
  75.   DWORD  query_id;              /* returned id assigned to this query   */
  76. } START_QUERY;
  77.  
  78. typedef                                 /* msg buffer header used  @001 */
  79. STRUCT16 _STOP_QUERY                      /* privately by allc/free       */
  80. {
  81.   WORD   request_type;          /* REQUEST_STOP_QUERY                   */
  82.   DWORD  query_id;              /* id of query to stop                  */
  83. } STOP_QUERY;
  84.  
  85. typedef                                 /* msg buffer header used       */
  86. STRUCT16 _DIAL_EVENT                      /* privately by allc/free       */
  87. {
  88.   WORD    event_type;              /* See EVENT_* defines               */
  89.   DWORD   identifier;              /* call or answer identifier         */
  90.   WORD    event_rc;                /* event return code                 */
  91.   BYTE    call_type;               /* inc/out, connected event only     */
  92.   BYTE    reserved;                /*                                   */
  93.   DWORD   call_id;                 /* call id, inc connected event only */
  94.   WORD    display_lgth;            /* length of following display info  */
  95.   BYTE    display_info[1];         /* variable lgth display array       */
  96. } DIAL_EVENT;
  97.  
  98. typedef                                 /* msg buffer header used       */
  99. STRUCT16 _QUERY_EVENT                     /* privately by allc/free  @001 */
  100. {
  101.   WORD    event_type;              /* See EVENT_* defines               */
  102.   DWORD   query_id;                /* id of associated query request    */
  103.   BYTE    cp_name[16];             /* name of CP responding to query    */
  104.   BYTE    cp_region[16];           /* region of responding CP           */
  105.   BYTE    cp_description[80];      /* description of responding CP      */
  106.   BYTE    reserved[12];            /* ASCII mac address                 */
  107.   BYTE    cp_sec;                  /* Security Capability               */
  108. } QUERY_EVENT;
  109.  
  110. #define SEC_OFF                         0x00
  111. #define SEC_ON                          0x01
  112.  
  113. /* reported in the cp_sec byte to distinguish remote node type @BFD */
  114. #define CP_RESPONSE                     0x00
  115. #define WKS_RESPONSE                    0x02
  116.                                 /* protocol types                         */
  117. #define PROT_TYPE_LAN                   0x01
  118.                                 /* Display flag (for START AUTOANSWER)    */
  119. #define DISPLAY_STATUS_YES              0x00
  120. #define DISPLAY_STATUS_NO               0x01
  121.                                 /* Call Type (For Dial Events)            */
  122. #define CALL_TYPE_OUTGOING              0x00
  123. #define CALL_TYPE_INCOMING              0x01
  124.                                 /* request types                          */
  125. #define REQUEST_STOP_AUTOANSWER         0x0004
  126. #define REQUEST_START_AUTOANSWER        0x0005
  127. #define REQUEST_MAKE_CALL               0x0006
  128. #define REQUEST_HANGUP_CALL             0x0007
  129. #define REQUEST_START_QUERY             0x0008          /*              @001 */
  130. #define REQUEST_STOP_QUERY              0x0009          /*              @001 */
  131. #define REQUEST_START_DIAL              0x0000
  132.                                 /* event types                            */
  133. #define EVENT_CALL_CONNECTED            0x0001
  134. #define EVENT_REMOTE_HANGUP             0x0002
  135. #define EVENT_CALL_LOST                 0x0003
  136. #define EVENT_STOP_AUTOANSWER           0x0004
  137. #define EVENT_DISPLAY_INFO              0x0005
  138. #define EVENT_CALLBACK_SEQUENCE         0x0006
  139. #define EVENT_QUERY_RESPONSE            0x0008          /*              @001 */
  140.  
  141.  
  142. #define DS_CP_NOT_RUNNING               0x3501
  143. #define DS_CP_NOT_FOUND                 0x3502
  144. #define DS_REMOTE_CP_HANGUP             0x3503
  145. #define DS_DAC_ERROR_1_0                0x3504    /* @A03 */
  146. #define DS_SEC_FAILURE                  0x3505
  147. #define DS_SEC_CALLBACK_ENTRY_NOT_FOUND 0x3506    /* @BZA */
  148. #define DS_SEC_CALLBACK_ENTRY_ERROR     0x3507    /* @BZA */
  149. #define DS_SEC_CALLBACK_EXHAUSTED       0x3509    /* @BZA */
  150. #define DS_SEC_CALLBACK_PENDING         0x3508    /* @BCA */
  151.  
  152. #define DS_DAC_ERROR                    0x3604    /* @A03 */
  153. #define DS_DUP_NETBIOS_NAME             0x3609    /* @A03 */
  154.