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

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