home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / hapi_c16.h < prev    next >
Text File  |  2002-02-28  |  19KB  |  369 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*  Module Name     : HAPI_C16.H                                             */
  4. /*                                                                           */
  5. /*  Description     : 16 Bit HLLAPI Structure, Return Codes and Routines     */
  6. /*                                                                           */
  7. /*  Copyright Notice: IBM Personal Communication/3270 Version 4.1            */
  8. /*                    (C) COPYRIGHT IBM CORP. 1989,1995 - PROGRAM PROPERTY   */
  9. /*                    OF IBM ALL RIGHTS RESERVED                             */
  10. /*                                                                           */
  11. /*---------------------------------------------------------------------------*/
  12. /*  Function:                                                                */
  13. /*                                                                           */
  14. /*    Define the 16 Bit HLLAPI structure, return code constants and          */
  15. /*    the external routines HLLAPI.                                          */
  16. /*                                                                           */
  17. /*****************************************************************************/
  18.  
  19. #ifdef __cplusplus
  20.   extern "C" {
  21. #endif
  22.  
  23. #ifndef  HLLAPI_C_INCLUDED
  24. #define  HLLAPI_C_INCLUDED
  25. #endif
  26.  
  27. #pragma pack(1)
  28.  
  29. #define ord_hllapi  3
  30. #define ord_hllapiw 4
  31.  
  32. extern void far pascal hllapi(LPINT, LPSTR, LPINT, LPINT);
  33. extern void far pascal hllapiw(HWND, LPINT, LPSTR, LPINT, LPINT);
  34.  
  35. #include "hllstr16.h"                   /* 16 bit structure definitions */
  36.  
  37. /*********************************************************************/
  38. /**************** EHLLAPI FUNCTION NUMBERS ***************************/
  39. /*********************************************************************/
  40.  
  41. #define HA_CONNECT_PS            1      /* 000 Connect PS            */
  42.                                         /* function number.          */
  43.  
  44. #define HA_DISCONNECT_PS         2      /* 000 Disconnect PS         */
  45.                                         /* function number.          */
  46.  
  47. #define HA_SENDKEY               3      /* 000 Sendkey function      */
  48.                                         /* number.                   */
  49.  
  50. #define HA_WAIT                  4      /* 000 Wait function         */
  51.                                         /* number.                   */
  52.  
  53. #define HA_COPY_PS               5      /* 000 Copy PS function      */
  54.                                         /* number.                   */
  55.  
  56. #define HA_SEARCH_PS             6      /* 000 Search PS function    */
  57.                                         /* number.                   */
  58.  
  59. #define HA_QUERY_CURSOR_LOC      7      /* 000 Query Cursor          */
  60.                                         /* Location function         */
  61.                                         /* number.                   */
  62.  
  63. #define HA_COPY_PS_TO_STR        8      /* 000 Copy PS to String     */
  64.                                         /* function number.          */
  65.  
  66. #define HA_SET_SESSION_PARMS     9      /* 000 Set Session           */
  67.                                         /* Parameters function       */
  68.                                         /* number.                   */
  69.  
  70. #define HA_QUERY_SESSIONS        10     /* 000 Query Sessions        */
  71.                                         /* function number.          */
  72.  
  73. #define HA_RESERVE               11     /* 000 Reserve function      */
  74.                                         /* number.                   */
  75.  
  76. #define HA_RELEASE               12     /* 000 Release function      */
  77.                                         /* number.                   */
  78.  
  79.  
  80. #define HA_COPY_OIA              13     /* 000 Copy OIA function     */
  81.                                         /* number.                   */
  82.  
  83. #define HA_QUERY_FIELD_ATTR      14     /* 000 Query Field           */
  84.                                         /* Attribute function        */
  85.                                         /* number.                   */
  86.  
  87. #define HA_COPY_STR_TO_PS        15     /* 000 Copy string to PS     */
  88.                                         /* function number.          */
  89.  
  90. #define HA_STORAGE_MGR           17     /* 000 Storage Manager       */
  91.                                         /* function number.          */
  92.  
  93. #define HA_PAUSE                 18     /* 000 Pause function        */
  94.                                         /* number.                   */
  95.  
  96. #define HA_QUERY_SYSTEM          20     /* 000 Query System          */
  97.                                         /* function number.          */
  98.  
  99. #define HA_RESET_SYSTEM          21     /* 000 Reset System          */
  100.                                         /* function number.          */
  101.  
  102. #define HA_QUERY_SESSION_STATUS  22     /* 000 Query Session         */
  103.                                         /* Status function           */
  104.                                         /* number.                   */
  105.  
  106. #define HA_START_HOST_NOTIFY     23     /* 000 Start Host            */
  107.                                         /* Notification function     */
  108.                                         /* number.                   */
  109.  
  110. #define HA_QUERY_HOST_UPDATE     24     /* 000 Query Host Update     */
  111.                                         /* function number.          */
  112.  
  113. #define HA_STOP_HOST_NOTIFY      25     /* 000 Stop Host             */
  114.                                         /* Notification function     */
  115.                                         /* number.                   */
  116.  
  117. #define HA_SEARCH_FIELD          30     /* 000 Search Field          */
  118.                                         /* function number.          */
  119.  
  120. #define HA_FIND_FIELD_POS        31     /* 000 Find Field            */
  121.                                         /* Position function         */
  122.                                         /* number.                   */
  123.  
  124. #define HA_FIND_FIELD_LEN        32     /* 000 Find Field Length     */
  125.                                         /* function number.          */
  126.  
  127. #define HA_COPY_STR_TO_FIELD     33     /* 000 Copy String to        */
  128.                                         /* Field function number.    */
  129.  
  130. #define HA_COPY_FIELD_TO_STR     34     /* 000 Copy Field to         */
  131.                                         /* String function           */
  132.                                         /* number.                   */
  133.  
  134. #define HA_SET_CURSOR            40     /* 000 Set Cursor            */
  135.                                         /* function number.          */
  136.  
  137. #define HA_START_CLOSE_INTERCEPT 41     /* 000 Start Close Intercept */
  138.                                         /* function number.          */
  139.  
  140. #define HA_QUERY_CLOSE_INTERCEPT 42     /* 000 Query Close Intercept */
  141.                                         /* function number.          */
  142.  
  143. #define HA_STOP_CLOSE_INTERCEPT  43     /* 000 Stop Close Intercept  */
  144.                                         /* function number.          */
  145.  
  146. #define HA_START_KEY_INTERCEPT   50     /* 000 Start Keystroke       */
  147.                                         /* Intercept function        */
  148.                                         /* number.                   */
  149.  
  150. #define HA_GET_KEY               51     /* 000 Get Key function      */
  151.                                         /* number.                   */
  152.  
  153. #define HA_POST_INTERCEPT_STATUS 52     /* 000 Post Intercept        */
  154.                                         /* Status function           */
  155.                                         /* number.                   */
  156.  
  157. #define HA_STOP_KEY_INTERCEPT    53     /* 000 Stop Keystroke        */
  158.                                         /* Intercept function        */
  159.                                         /* number.                   */
  160.  
  161. #define HA_LOCK_PS               60     /* 000 Lock Presentation     */
  162.                                         /* Space function            */
  163.                                         /* number.                   */
  164.  
  165. #define HA_LOCK_PMSVC            61     /* 000 Lock PM Window        */
  166.                                         /* Services function         */
  167.                                         /* number.                   */
  168.  
  169. #define HA_SEND_FILE             90     /* 000 Send File function    */
  170.                                         /* number.                   */
  171.  
  172. #define HA_RECEIVE_FILE          91     /* 000 Receive file          */
  173.                                         /* function number.          */
  174.  
  175. #define HA_CONVERT_POS_ROW_COL   99     /* 000 Convert Position      */
  176.                                         /* or Row Column function    */
  177.                                         /* number.                   */
  178.  
  179. #define HA_CONNECT_PM_SRVCS     101     /* 000 Connect For           */
  180.                                         /* Presentation Manager      */
  181.                                         /* Window Services function  */
  182.                                         /* number                    */
  183.  
  184. #define HA_DISCONNECT_PM_SRVCS  102     /* 000 Disconnect From       */
  185.                                         /* Presentation Manager      */
  186.                                         /* Window Services function  */
  187.                                         /* number                    */
  188.  
  189. #define HA_QUERY_WINDOW_COORDS  103     /* 000 Query Presentation    */
  190.                                         /* Manager Window            */
  191.                                         /* Coordinates function      */
  192.                                         /* number                    */
  193.  
  194. #define HA_PM_WINDOW_STATUS     104     /* 000 PM Window Status      */
  195.                                         /* function number           */
  196.  
  197. #define HA_CHANGE_SWITCH_NAME   105     /* 000 Change Switch List    */
  198.                                         /* Logical Terminal name     */
  199.                                         /* function number           */
  200.  
  201. #define HA_CHANGE_WINDOW_NAME   106     /* 000 Change PS Window      */
  202.                                         /* Name function number      */
  203.  
  204. #define HA_START_PLAYING_MACRO  110     /* 000 Start playing macro   */
  205.                                         /* function                  */
  206.  
  207. #define HA_START_STRUCTURED_FLD 120     /* 000 Start Structured      */
  208.                                         /* Field function number     */
  209.  
  210. #define HA_STOP_STRUCTURED_FLD  121     /* 000 Stop Structured       */
  211.                                         /* Field function number     */
  212.  
  213. #define HA_QUERY_BUFFER_SIZE    122     /* 000 Query Communications  */
  214.                                         /* Buffer Size function      */
  215.                                         /* number                    */
  216.  
  217. #define HA_ALLOCATE_COMMO_BUFF  123     /* 000 Allocate              */
  218.                                         /* Communications Buffer     */
  219.                                         /* function number           */
  220.  
  221. #define HA_FREE_COMMO_BUFF      124     /* 000 Free Communications   */
  222.                                         /* Buffer function number    */
  223.  
  224. #define HA_GET_ASYNC_COMPLETION 125     /* 000 Get Asynchronous      */
  225.                                         /* Completion Request        */
  226.                                         /* function                  */
  227.  
  228. #define HA_READ_STRUCTURED_FLD  126     /* 000 Read Structured Field */
  229.                                         /* function number           */
  230.  
  231. #define HA_WRITE_STRUCTURED_FLD 127     /* 000 Write Structured      */
  232.                                         /* Field function number     */
  233.  
  234.  
  235. /*********************************************************************/
  236. /******************** EHLLAPI RETURN CODES ***************************/
  237. /*********************************************************************/
  238.  
  239.  
  240. #define HARC_SUCCESS               0    /* 000 Good return code.     */
  241.  
  242. #define HARC99_INVALID_INP         0    /* 000 Incorrect input       */
  243.                                         /* for Convert Position      */
  244.                                         /* or RowCol(99).            */
  245.  
  246. #define HARC_INVALID_PS            1    /* 000 Invalid PS, Not       */
  247.                                         /* connected return code.    */
  248.  
  249. #define HARC_BAD_PARM              2    /* 000 Bad parameter, or     */
  250.                                         /* verb not supported        */
  251.                                         /* return code.              */
  252.  
  253. #define HARC_BUSY                  4    /* 000 PS is busy return     */
  254.                                         /* code.                     */
  255.  
  256. #define HARC_LOCKED                5    /* 000 PS is LOCKed, or      */
  257.                                         /* invalid keystroke         */
  258.                                         /* return code.              */
  259.  
  260. #define HARC_TRUNCATION            6    /* 000 Truncation            */
  261.                                         /* occured, or invalid       */
  262.                                         /* length return code.       */
  263.  
  264. #define HARC_INVALID_PS_POS        7    /* 000 Invalid PS            */
  265.                                         /* position return code.     */
  266.  
  267. #define HARC_NO_PRIOR_START        8    /* 000 No prior start        */
  268.                                         /* keystroke int. or host    */
  269.                                         /* notify return code.       */
  270.  
  271. #define HARC_SYSTEM_ERROR          9    /* 000 A system error        */
  272.                                         /* occured return code.      */
  273.  
  274. #define HARC_UNSUPPORTED           10   /* 000 Invalid or            */
  275.                                         /* unsupported function      */
  276.                                         /* number return code.       */
  277.  
  278. #define HARC_UNAVAILABLE           11   /* 000 Resource is           */
  279.                                         /* unavalible at this        */
  280.                                         /* time return code.         */
  281.  
  282. #define HARC_SESSION_STOPPED       12   /* 000 Session has           */
  283.                                         /* been stopped              */
  284.  
  285. #define HARC_BAD_MNEMONIC          20   /* 000 Illegal mnemonic      */
  286.                                         /* return code.              */
  287.  
  288. #define HARC_OIA_UPDATE            21   /* 000 A OIA update          */
  289.                                         /* occurred return code.     */
  290.  
  291. #define HARC_PS_UPDATE             22   /* 000 A PS update           */
  292.                                         /* occurred return code.     */
  293.  
  294. #define HARC_PS_AND_OIA_UPDATE     23   /* A PS and OIA update       */
  295.                                         /* occurred return code.     */
  296.  
  297. #define HARC_STR_NOT_FOUND_UNFM_PS 24   /* 000 String not found,     */
  298.                                         /* or Unformated PS          */
  299.                                         /* return code.              */
  300.  
  301. #define HARC_NO_KEYS_AVAIL         25   /* 000 No keys available     */
  302.                                         /* return code.              */
  303.  
  304. #define HARC_HOST_UPDATE           26   /* 000 A HOST update         */
  305.                                         /* occurred return code.     */
  306.  
  307. #define HARC_FIELD_LEN_ZERO        28   /* 000 Field length = 0      */
  308.                                         /* return code.              */
  309.  
  310. #define HARC_QUEUE_OVERFLOW        31   /* 000 Keystroke queue       */
  311.                                         /* overflow return code.     */
  312.  
  313. #define HARC_ANOTHER_CONNECTION    32   /* 000 Successful. Another   */
  314.                                         /* Structured Field          */
  315.                                         /* connection to this        */
  316.                                         /* session concurrently      */
  317.                                         /* exists.                   */
  318.  
  319. #define HARC_INBOUND_CANCELLED     34   /* 000 Inbound structured    */
  320.                                         /* field cancelled.          */
  321.  
  322. #define HARC_OUTBOUND_CANCELLED    35   /* 000 Outbound structured   */
  323.                                         /* field cancelled.          */
  324.  
  325. #define HARC_CONTACT_LOST          36   /* 000 Contact with the      */
  326.                                         /* Host was lost.            */
  327.  
  328. #define HARC_INBOUND_DISABLED      37   /* 000 Host structured field */
  329.                                         /* state is inbound disabled.*/
  330.  
  331. #define HARC_FUNCTION_INCOMPLETE   38   /* 000 Requested Asynchronous*/
  332.                                         /* function has not completed*/
  333.  
  334. #define HARC_DDM_ALREADY_EXISTS    39   /* 000 Request for DDM       */
  335.                                         /* structured field connect  */
  336.                                         /* failed because another    */
  337.                                         /* DDM connection to this    */
  338.                                         /* session already exists.   */
  339.  
  340. #define HARC_ASYNC_REQUESTS_OUT    40   /* 000 Disconnect successful.*/
  341.                                         /* Pending asynchronous      */
  342.                                         /* requests pending.         */
  343.  
  344. #define HARC_MEMORY_IN_USE         41   /* 000 Memory cannot be freed*/
  345.                                         /* because it is in use.     */
  346.  
  347. #define HARC_NO_MATCH              42   /* 000 No pending            */
  348.                                         /* asynchronous request meet */
  349.                                         /* supplied criterion.       */
  350.  
  351. #define HARC_OPTION_INVALID        43   /* 000 Option requested is   */
  352.                                         /* invalid at this time.     */
  353.  
  354. #define HARC99_INVALID_PS        9998   /* 000 An invalid PS id      */
  355.                                         /* was specified, or PS      */
  356.                                         /* was never connected, or   */
  357.                                         /* System Error occured      */
  358.                                         /* for Convert Position      */
  359.                                         /* or RowCol(99).            */
  360.  
  361. #define HARC99_INVALID_CONV_OPT  9999   /* 000 Invalid convert       */
  362.                                         /* option was specified.     */
  363.                                         /* for Convert Position      */
  364.                                         /* or RowCol(99).            */
  365.  
  366. #ifdef __cplusplus
  367.   }
  368. #endif
  369.