home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / hllstr32.h < prev    next >
C/C++ Source or Header  |  2002-02-28  |  37KB  |  681 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*  Module Name     : HLLSTR32.H                                             */
  4. /*                                                                           */
  5. /*  Description     : 32 Bit HLLAPI Structures                               */
  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 structures                                    */
  15. /*                                                                           */
  16. /*---------------------------------------------------------------------------*/
  17. /* Change Activity:                                                          */
  18. /*                                                                           */
  19. /* DCRs                                                                      */
  20. /* ==========================================================================*/
  21. /*       dcrnum   rls   date     name description of change                  */
  22. /* @BD1  fp000011 600   012301    MM  Query Additional Field Attributes f45  */
  23. /*****************************************************************************/
  24. #ifndef HLLSTR32_HEAD
  25. #define HLLSTR32_HEAD
  26.  
  27. #ifdef __cplusplus
  28.   extern "C" {
  29. #endif
  30.  
  31. /*********************************************************************/
  32. /******************* EHLLAPI FUNCTION STRUCTURES *********************/
  33. /*********************************************************************/
  34.  
  35. typedef union   _wait_object            /*                           */
  36. {
  37.   HANDLE      * hev_semaphore;          /* 000 Event semaphore       */
  38.   HWND          window_handle;          /* 000 Window handle         */
  39.   WORD          wTaskID;                /* 000 TaskID returned       */
  40. } WAIT_OBJECT
  41. ;
  42.  
  43. #define  sthn_asem   sthn_wait.hev_semaphore
  44. #define  stci_asem   stci_wait.hev_semaphore
  45. #define  stsf_asem   stsf_wait.hev_semaphore
  46. #define  rdsf_asem   rdsf_wait.hev_semaphore
  47. #define  wrsf_asem   wrsf_wait.hev_semaphore
  48.  
  49. #define  stps_struct HLDConnectPS
  50. #define  qses_struct HLDQuerySessions
  51. #define  coia_struct HLDCopyOIA
  52. #define  stor_struct HLDStorageMgr
  53. #define  paus_struct HLDPause
  54. #define  qsys_struct HLDQuerySystem
  55. #define  qsst_struct HLDQuerySessionStatus
  56. #define  sthn_struct HLDStartHostNotify
  57. #define  qyhn_struct HLDQueryHostUpdate
  58. #define  sphn_struct HLDStopHostNotify
  59. #define  stci_struct HLDStartCloseIntercept
  60. #define  qyci_struct HLDQueryCloseIntercept
  61. #define  spci_struct HLDStopCloseIntercept
  62. #define  stki_struct HLDStartKeyIntercept
  63. #define  gkey_struct HLDGetKey
  64. #define  pist_struct HLDPostInterceptStatus
  65. #define  spki_struct HLDStopKeyIntercept
  66. #define  lkps_struct HLDLockPS
  67. #define  lkpm_struct HLDLockPMSVC
  68. #define  cvrc_struct HLDConvertPosRowCol
  69. #define  stpm_struct HLDConnectPM
  70. #define  sppm_struct HLDDisconnectPM
  71. #define  gcor_struct HLDQueryWindowCoords
  72. #define  cwin_struct HLDPMWindowStatus
  73. #define  xwin_struct HLDPMWindowStatusExt
  74. #define  chsw_struct HLDChangeSwitchName
  75. #define  chlt_struct HLDChangeWindowName
  76. #define  stsf_struct HLDConnectSF
  77. #define  spsf_struct HLDDisconnectSF
  78. #define  qbuf_struct HLDQueryBufferSize
  79. #define  abuf_struct HLDAllocateCommBuff
  80. #define  fbuf_struct HLDFreeCommBuff
  81. #define  gcmp_struct HLDGetAsyncCompletion
  82. #define  rdsf_struct HLDReadSF
  83. #define  wrsf_struct HLDWriteSF
  84.  
  85. /*********************************************************************/
  86. /*                     Connect for Presentation Services (1)         */
  87. /*********************************************************************/
  88.  
  89. struct HLDConnectPS                     /* 000 Connect For           */
  90.                                         /* Presentation              */
  91.                                         /* Services structure        */
  92. {
  93.   unsigned char stps_shortname;         /* 000 Session Shortname     */
  94.   unsigned char stps_extendedname[3];   /* RESERVED                  */
  95. }
  96. ;                                       /* 000                       */
  97.  
  98. /*********************************************************************/
  99. /*                     Query Sessions (10)                           */
  100. /*********************************************************************/
  101.  
  102. struct HLDQuerySessions                 /* 000 Query Sessions        */
  103.                                         /* structure                 */
  104. {
  105.   unsigned char qses_shortname;         /* 000 Session Shortname     */
  106.   unsigned char qses_extendedname[3];   /* RESERVED                  */
  107.   unsigned char qses_longname[8];       /* 000 Session Longname      */
  108.   unsigned char qses_sestype;           /* 000 Session Type          */
  109.   unsigned char qses_reserved1;         /* 000 RESERVED              */
  110.   unsigned short int qses_pssize;       /* 000 Presentation Space    */
  111.                                         /* Size.                     */
  112. }
  113. ;                                       /* 000                       */
  114.  
  115. /*********************************************************************/
  116. /*                         Copy OIA (13)                             */
  117. /*********************************************************************/
  118.  
  119. struct HLDCopyOIA                       /* 000 Copy OIA structure    */
  120. {
  121.   unsigned char coia_format;            /* 000 The OIA Format        */
  122.                                         /* Byte for the 3270 PC.     */
  123.   unsigned char coia_image[80];         /* 000 The OIA image         */
  124.   unsigned char coia_group[22];         /* 000 The OIA group         */
  125.   unsigned char coia_reserved;          /* RESERVED                  */
  126. }
  127. ;                                       /* 000                       */
  128.  
  129. /*********************************************************************/
  130. /*                     Get NLS Inforation (16)                       */
  131. /*********************************************************************/
  132.  
  133. struct HLDGetNLSInformation             /* 000 Get NLS Information   */
  134. {
  135.   unsigned char gnlsi_shortname;        /* 000 Session Shortname     */
  136.   unsigned char gnlsi_extendedname[3];  /* RESERVED                  */
  137.   unsigned int  gnlsi_API_CodePage;     /* CP set in API Settings    */
  138.   unsigned int  gnlsi_Host_CodePage;    /* CP Used By Host           */
  139.   unsigned int  gnlsi_OS_CodePage;      /* CP returned from OS       */
  140.   int           gnlsi_DBCS;             /* DBCS?                     */
  141. };
  142.  
  143. /*********************************************************************/
  144. /*                     Storage Manager (17)                          */
  145. /*********************************************************************/
  146.  
  147. struct HLDStorageMgr                    /* 000 Storage Manager       */
  148.                                         /* structure.                */
  149. {
  150.   unsigned char *     stor_ptr;         /* 000 4 byte pointer to     */
  151.                                         /* memory.                   */
  152. }
  153. ;                                       /* 000                       */
  154.  
  155. /*********************************************************************/
  156. /*                     Pause (18)                                    */
  157. /*********************************************************************/
  158.  
  159. struct HLDPause                         /* 000 Pause                 */
  160.                                         /* structure.                */
  161. {
  162.   unsigned char paus_shortname;         /* 000 Session Shortname     */
  163.   unsigned char paus_extendedname[3];   /* RESERVED                  */
  164.   unsigned char paus_singleses;         /* 000 Single session        */
  165.                                         /* indicater                 */
  166.   unsigned char paus_reserved[3];       /* RESERVED                  */
  167. }
  168. ;                                       /* 000                       */
  169.  
  170. /*********************************************************************/
  171. /*                     Query System (20)                             */
  172. /*********************************************************************/
  173.  
  174. struct HLDQuerySystem                   /* 000 Query System          */
  175.                                         /* structure                 */
  176. {
  177.   unsigned char qsys_hllapi_ver;        /* 000 Ehllapi version       */
  178.   unsigned char qsys_hllapi_lvl[2];     /* 000 Ehllapi level         */
  179.   unsigned char qsys_hllapi_date[6];    /* 000 Ehllapi release       */
  180.                                         /* date                      */
  181.   unsigned char qsys_lim_ver;           /* 000 LIM version           */
  182.   unsigned char qsys_lim_lvl[2];        /* 000 LIM level             */
  183.   unsigned char qsys_hardware_base;     /* 000 Hardware base         */
  184.   unsigned char qsys_ctrl_prog_type;    /* 000 Control program       */
  185.                                         /* type                      */
  186.   unsigned char qsys_seq_num[2];        /* 000 Sequence number       */
  187.   unsigned char qsys_ctrl_prog_ver[2];  /* 000 Control program       */
  188.                                         /* version                   */
  189.   unsigned char qsys_pc_sname;          /* 000 Base pc session       */
  190.                                         /* name                      */
  191.   unsigned char qsys_err1[4];           /* 000 System error words    */
  192.                                         /* and 2                     */
  193.   unsigned char qsys_err2[4];           /* 000 System error words    */
  194.                                         /* and 4                     */
  195.   unsigned char qsys_sys_model;         /* 000 System model          */
  196.   unsigned char qsys_sys_submodel;      /* 000 System submodel       */
  197.   unsigned char qsys_reserved1;         /* 000 RESERVED              */
  198.   unsigned short qsys_pc_nls;           /* 000 Pc code page          */
  199.   unsigned char qsys_monitor_type;      /* 000 Monitor type          */
  200.   unsigned char qsys_reserved2[3];      /* 000 RESERVED              */
  201. }
  202. ;                                       /* 000                       */
  203.  
  204. /*********************************************************************/
  205. /*                     Query Session Status (22)                     */
  206. /*********************************************************************/
  207.  
  208. struct HLDQuerySessionStatus            /* 000 Query Session         */
  209.                                         /* Status structure          */
  210. {
  211.   unsigned char qsst_shortname;         /* 000 Session Shortname     */
  212.   unsigned char qsst_extendedname[3];   /* RESERVED                  */
  213.   unsigned char qsst_longname[8];       /* 000 Session longname      */
  214.   unsigned char qsst_sestype;           /* 000 Session type          */
  215.   unsigned char qsst_char;              /* 000 Session               */
  216.                                         /* characteristics           */
  217.   unsigned short int qsst_ps_rows;      /* 000 Number of rows in     */
  218.                                         /* presentation space        */
  219.   unsigned short int qsst_ps_cols;      /* 000 Number of columns     */
  220.                                         /* in presentation space     */
  221.   unsigned short int qsst_host_nls;     /* 000 Host code page        */
  222. }
  223. ;                                       /* 000                       */
  224.  
  225. /*********************************************************************/
  226. /*                     Start Host Notification (23)                  */
  227. /*********************************************************************/
  228.  
  229. struct HLDStartHostNotify               /* 000 Start Host            */
  230.                                         /* Notification              */
  231.                                         /* structure.                */
  232. {
  233.   unsigned char sthn_shortname;         /* 000 Session Shortname     */
  234.   unsigned char sthn_extendedname[3];   /* RESERVED                  */
  235.   unsigned char sthn_event_opt;         /* 000 Update event          */
  236.                                         /* option                    */
  237.   unsigned char sthn_reserved1[3];      /* RESERVED                  */
  238.   WAIT_OBJECT        sthn_wait;         /* wait_object union         */
  239.                                         /*                           */
  240.   unsigned char sthn_aevent_opt;        /* 000 Async update event    */
  241.                                         /* option                    */
  242.   unsigned char sthn_reserved2[3];      /* RESERVED                  */
  243. }
  244. ;                                       /* 000                       */
  245.  
  246. /*********************************************************************/
  247. /*                     Query Host Update (24)                        */
  248. /*********************************************************************/
  249.  
  250. struct HLDQueryHostUpdate               /* 000 Query Host Update     */
  251.                                         /* structure                 */
  252. {
  253.   unsigned char qyhn_shortname;         /* 000 Session Shortname     */
  254.   unsigned char qyhn_extendedname[3];   /* RESERVED                  */
  255. }
  256. ;                                       /* 000                       */
  257.  
  258. /*********************************************************************/
  259. /*                     Stop Host Notification (25)                   */
  260. /*********************************************************************/
  261.  
  262. struct HLDStopHostNotify                /* 000 Stop Host Notification*/
  263.                                         /* structure                 */
  264. {
  265.   unsigned char sphn_shortname;         /* 000 Session Shortname     */
  266.   unsigned char sphn_extendedname[3];   /* RESERVED                  */
  267. }
  268. ;                                       /* 000                       */
  269.  
  270. /*********************************************************************/
  271. /*                     Start Close Click Intercept (41)              */
  272. /*********************************************************************/
  273.  
  274. struct HLDStartCloseIntercept           /* 000 Start Close Click     */
  275.                                         /* Intercept structure       */
  276. {
  277.   unsigned char stci_shortname;         /* 000 Session Shortname     */
  278.   unsigned char stci_extendedname[3];   /* RESERVED                  */
  279.   unsigned char stci_close_opt;         /* 000 Type of notification  */
  280.   unsigned char stci_reserved[3];       /* RESERVED                  */
  281.   WAIT_OBJECT        stci_wait;         /* wait_object union         */
  282.                                         /*                           */
  283. }
  284. ;                                       /* 000                       */
  285.  
  286. /*********************************************************************/
  287. /*                     Query Close Click Intercept (42)              */
  288. /*********************************************************************/
  289.  
  290. struct HLDQueryCloseIntercept           /* 000 Query Close Click     */
  291.                                         /* Intercept structure       */
  292. {
  293.   unsigned char qyci_shortname;         /* 000 Session Shortname     */
  294.   unsigned char qyci_extendedname[3];   /* RESERVED                  */
  295. }
  296. ;                                       /* 000                       */
  297.  
  298. /*********************************************************************/
  299. /*                     Stop  Close Click Intercept (43)              */
  300. /*********************************************************************/
  301.  
  302. struct HLDStopCloseIntercept            /* 000 Stop Close Click      */
  303.                                         /* Intercept structure       */
  304. {
  305.   unsigned char spci_shortname;         /* 000 Session Shortname     */
  306.   unsigned char spci_extendedname[3];   /* RESERVED                  */
  307. }
  308. ;                                       /* 000                       */
  309.  
  310. //bd1a starts
  311. /*********************************************************************/
  312. /*                     Query Additional Field Attributes (45)        */
  313. /*********************************************************************/
  314.  
  315. struct HLDQueryAddFieldAttr             /* 000 Stop Close Click      */
  316.                                         /* Intercept structure       */
  317. {
  318.   unsigned char qattr_reserved[6];      /* RESERVED                  */
  319.   unsigned char RTL_INDICATOR;          /* RTL Field Indicator       */
  320.   unsigned char CASE_INDICATOR;         /* Case Field Indicator      */
  321. }
  322. ;                                       /* 000                       */
  323. //bd1a ends
  324. /*********************************************************************/
  325. /*                     Start Keystroke Intercept (50)                */
  326. /*********************************************************************/
  327.  
  328. struct HLDStartKeyIntercept             /* 000 Start Keystroke       */
  329.                                         /* Intercept structure       */
  330. {
  331.   unsigned char stki_shortname;         /* 000 Session Shortname     */
  332.   unsigned char stki_extendedname[3];   /* RESERVED                  */
  333.   unsigned char stki_keytyp_opt;        /* 000 Type of keys to       */
  334.                                         /* intercept                 */
  335.   unsigned char stki_reserved1[3];      /* RESERVED                  */
  336.   WAIT_OBJECT        stki_wait;         /* wait_object union         */
  337.                                         /*                           */
  338.   unsigned char stki_akeytyp_opt;       /* 000 async type of keys to */
  339.                                         /* intercept                 */
  340.   unsigned char stki_reserved2[3];      /* RESERVED                  */
  341. }
  342. ;                                       /* 000                       */
  343.  
  344. /*********************************************************************/
  345. /*                     Get Key (51)                                  */
  346. /*********************************************************************/
  347.  
  348. struct HLDGetKey                        /* 000 Get Key structure.    */
  349. {
  350.   unsigned char gkey_shortname;         /* 000 Session Shortname     */
  351.   unsigned char gkey_extendedname[3];   /* RESERVED                  */
  352.   unsigned char gkey_keytype;           /* 000 Type of key           */
  353.                                         /* intercepted               */
  354.   unsigned char gkey_key[6];            /* 000 Ascii or ascii        */
  355.                                         /* mnemonic                  */
  356.   unsigned char gkey_reserved;          /* RESERVED                  */
  357. }
  358. ;                                       /* 000                       */
  359.  
  360. /*********************************************************************/
  361. /*                     Post Intercept Status (52)                    */
  362. /*********************************************************************/
  363.  
  364. struct HLDPostInterceptStatus           /* 000 Post Intercept        */
  365.                                         /* Status structure          */
  366. {
  367.   unsigned char pist_shortname;         /* 000 Session Shortname     */
  368.   unsigned char pist_extendedname[3];   /* RESERVED                  */
  369.   unsigned char pist_post_opt;          /* 000 Key accepted or       */
  370.                                         /* rejected                  */
  371.   unsigned char pist_reserved[3];       /* RESERVED                  */
  372. }
  373. ;                                       /* 000                       */
  374.  
  375. /*********************************************************************/
  376. /*                     Stop  Keystroke Intercept (53)                */
  377. /*********************************************************************/
  378.  
  379. struct HLDStopKeyIntercept              /* 000 Stop Intercept        */
  380.                                         /* Status structure          */
  381. {
  382.   unsigned char spki_shortname;         /* 000 Session Shortname     */
  383.   unsigned char spki_extendedname[3];   /* RESERVED                  */
  384. }
  385. ;                                       /* 000                       */
  386.  
  387. /*********************************************************************/
  388. /*                     Lock Presentation Space API (60)              */
  389. /*********************************************************************/
  390.  
  391. struct HLDLockPS                        /* 000 LockPS structure     */
  392. {
  393.   unsigned char lkps_shortname;         /* 000 Session Shortname     */
  394.   unsigned char lkps_extendedname[3];   /* RESERVED                  */
  395.   unsigned char lkps_lockopt;           /* 000 Lock/unlock option    */
  396.   unsigned char lkps_queueopt;          /* 000 Queue option          */
  397.   unsigned char lkps_reserved[2];       /* RESERVED                  */
  398. }
  399. ;                                       /* 000                       */
  400.  
  401. /*********************************************************************/
  402. /*                     Lock PMSVC API (61)                           */
  403. /*********************************************************************/
  404.  
  405. struct HLDLockPMSVC                     /* 000 LockPMSVC structure   */
  406. {
  407.   unsigned char lkpm_shortname;         /* 000 Session Shortname     */
  408.   unsigned char lkpm_extendedname[3];   /* RESERVED                  */
  409.   unsigned char lkpm_lockopt;           /* 000 Lock/unlock option    */
  410.   unsigned char lkpm_queueopt;          /* 000 Queue option          */
  411.   unsigned char lkpm_reserved[2];       /* RESERVED                  */
  412. }
  413. ;                                       /* 000                       */
  414.  
  415. /*********************************************************************/
  416. /*                     Convert Position or Row Column (99)           */
  417. /*********************************************************************/
  418.  
  419. struct HLDConvertPosRowCol              /* 000 Convert Position      */
  420.                                         /* or Row Column             */
  421.                                         /* structure                 */
  422. {
  423.   unsigned char cvrc_shortname;         /* 000 Session Shortname     */
  424.   unsigned char cvrc_extendedname[3];   /* RESERVED                  */
  425.   unsigned char cvrc_opt;               /* 000 Convert option        */
  426.   unsigned char cvrc_reserved[3];       /* RESERVED                  */
  427. }
  428. ;                                       /* 000                       */
  429.  
  430. /*********************************************************************/
  431. /*                     Connect for PM Services (101)                 */
  432. /*********************************************************************/
  433.  
  434. struct HLDConnectPM                     /* 000 Connect For           */
  435.                                         /* Presentation Manager      */
  436.                                         /* Services structure        */
  437. {
  438.   unsigned char stpm_shortname;         /* 000 Session Shortname     */
  439.   unsigned char stpm_extendedname[3];   /* RESERVED                  */
  440. }
  441. ;                                       /* 000                       */
  442.  
  443. /*********************************************************************/
  444. /*                     Disconnect from PM Services (102)             */
  445. /*********************************************************************/
  446.  
  447. struct HLDDisconnectPM                  /* 000 Disconnect From       */
  448.                                         /* Presentation Manager      */
  449.                                         /* Services structure        */
  450. {
  451.   unsigned char sppm_shortname;         /* 000 Session Shortname     */
  452.   unsigned char sppm_extendedname[3];   /* RESERVED                  */
  453. }
  454. ;                                       /* 000                       */
  455.  
  456. /*********************************************************************/
  457. /*                       Query PM Window Coordinates (103)           */
  458. /*********************************************************************/
  459.  
  460. struct HLDQueryWindowCoords             /* 000 Query PM Window       */
  461.                                         /* Coordinates structure     */
  462. {
  463.   unsigned char gcor_shortname;         /* 000 Session Shortname     */
  464.   unsigned char gcor_extendedname[3];   /* RESERVED                  */
  465.   long int      gcor_xLeft;             /* 000 Left X coordinate     */
  466.   long int      gcor_yBottom;           /* 000 Bottom Y coordinate   */
  467.   long int      gcor_xRight;            /* 000 Right X coordinate    */
  468.   long int      gcor_yTop;              /* 000 Top Y coordinate      */
  469. }
  470. ;                                       /* 000                       */
  471.  
  472. /*********************************************************************/
  473. /*                       PM Window Status (104)                      */
  474. /*********************************************************************/
  475.  
  476. struct HLDPMWindowStatus                /* 000 PM Window Status      */
  477.                                         /* structure                 */
  478. {
  479.   unsigned char cwin_shortname;         /* 000 Session Shortname     */
  480.   unsigned char cwin_extendedname[3];   /* RESERVED                  */
  481.   unsigned char cwin_option;            /* 000 Set/Query option      */
  482.   unsigned char cwin_reserved;          /* RESERVED                  */
  483.   unsigned short int cwin_flags;        /* 000 Window flags          */
  484.   long int      cwin_xpos;              /* 000 X coordinate position */
  485.   long int      cwin_ypos;              /* 000 Y coordinate position */
  486.   unsigned long int cwin_xsize;         /* 000 X axis window size    */
  487.   unsigned long int cwin_ysize;         /* 000 Y axis window size    */
  488.   unsigned long int cwin_behind;        /* 000 Relative Window       */
  489.                                         /*     placement             */
  490. }
  491. ;                                       /* 000                       */
  492.  
  493. struct HLDPMWindowStatusExt             /* 000 PM Window Status for  */
  494.                                         /* extended structure        */
  495. {
  496.   unsigned char xwin_shortname;         /* 000 Session Shortname     */
  497.   unsigned char xwin_extendedname[3];   /* RESERVED                  */
  498.   unsigned char xwin_option;            /* 000 Set/Query option      */
  499.   unsigned char xwin_reserved1;         /* RESERVED                  */
  500.   unsigned short int xwin_flags;        /* 000 Window flags          */
  501.   unsigned short int xwin_fontx;        /* 000 X font size           */
  502.   unsigned short int xwin_fonty;        /* 000 Y font size           */
  503.   unsigned short int xwin_offsetx;      /* 000 X offset              */
  504.   unsigned short int xwin_offsety;      /* 000 Y offset              */
  505.   unsigned short int xwin_firstrow;     /* 000 first row             */
  506.   unsigned short int xwin_firstcol;     /* 000 first col             */
  507.   HWND          xwin_handle;            /* 000 Window handle         */
  508. }
  509. ;                                       /* 000                       */
  510.  
  511. /*********************************************************************/
  512. /*                Change Switch List Name (105)                      */
  513. /*********************************************************************/
  514.  
  515. struct HLDChangeSwitchName              /* 000 Change Switch List    */
  516.                                         /* Name structure            */
  517. {
  518.   unsigned char chsw_shortname;         /* 000 Session Shortname     */
  519.   unsigned char chsw_extendedname[3];   /* RESERVED                  */
  520.   unsigned char chsw_option;            /* 000 Set/Reset option      */
  521.   unsigned char chsw_swname[61];        /* 000 Switch List name      */
  522.   unsigned char chsw_reserved[2];       /* RESERVED                  */
  523. }
  524. ;                                       /* 000                       */
  525.  
  526. /*********************************************************************/
  527. /*                Change LT Window Name (106)                        */
  528. /*********************************************************************/
  529.  
  530. struct HLDChangeWindowName              /* 000 Change LT Window      */
  531.                                         /* Name structure            */
  532. {
  533.   unsigned char chlt_shortname;         /* 000 Session Shortname     */
  534.   unsigned char chlt_extendedname[3];   /* RESERVED                  */
  535.   unsigned char chlt_option;            /* 000 Set/Reset option      */
  536.   unsigned char chlt_ltname[61];        /* 000 LT Window Name        */
  537.   unsigned char chlt_reserved[2];       /* RESERVED                  */
  538. }
  539. ;                                       /* 000                       */
  540.  
  541. /*********************************************************************/
  542. /*                Start Structured Field           (120)             */
  543. /*********************************************************************/
  544.  
  545. struct HLDConnectSF                     /* 000 Connect SF structure  */
  546. {
  547.   unsigned char stsf_shortname;         /* 000 Session Shortname     */
  548.   unsigned char stsf_extendedname[3];   /* RESERVED                  */
  549.   unsigned char *    stsf_query;        /* 000 4 byte pointer to     */
  550.                                         /* 000 Query reply           */
  551.   unsigned short int stsf_doid;         /* 000 Destination/Orgin id  */
  552.   unsigned char stsf_reserved[2];       /* RESERVED                  */
  553.   WAIT_OBJECT        stsf_wait;         /* wait_object union         */
  554. }
  555. ;                                       /* 000                       */
  556.  
  557. /*********************************************************************/
  558. /*                Stop  Structured Field           (121)             */
  559. /*********************************************************************/
  560.  
  561. struct HLDDisconnectSF                  /* 000 Disconnect SF         */
  562.                                         /* structure                 */
  563. {
  564.   unsigned char spsf_shortname;         /* 000 Session Shortname     */
  565.   unsigned char spsf_extendedname[3];   /* RESERVED                  */
  566.   unsigned short int spsf_doid;         /* 000 Destination/Orgin id  */
  567.   unsigned char spsf_reserved[2];       /* RESERVED                  */
  568. }
  569. ;                                       /* 000                       */
  570.  
  571. /*********************************************************************/
  572. /*                Query Communications buffer sizes(122)             */
  573. /*********************************************************************/
  574.  
  575. struct HLDQueryBufferSize               /* 000 Query Communication   */
  576.                                         /* buffer size structure     */
  577. {
  578.   unsigned char qbuf_shortname;         /* 000 Session Shortname     */
  579.   unsigned char qbuf_extendedname[3];   /* RESERVED                  */
  580.   unsigned long int  qbuf_opt_inbound;  /* 000 Optimal inbound buffer*/
  581.                                         /* 000 length                */
  582.   unsigned long int  qbuf_max_inbound;  /* 000 Maximum inbound buffer*/
  583.                                         /* 000 length                */
  584.   unsigned long int  qbuf_opt_outbound; /* 000 Optiomal outbound     */
  585.                                         /* 000 buffer length         */
  586.   unsigned long int  qbuf_max_outbound; /* 000 Maximum outbound      */
  587.                                         /* 000 buffer length         */
  588. }
  589. ;                                       /* 000                       */
  590.  
  591. /*********************************************************************/
  592. /*                Allocate communications buffer   (123)             */
  593. /*********************************************************************/
  594.  
  595. struct HLDAllocateCommBuff              /* 000 Allocate Communication*/
  596.                                         /* buffer structure          */
  597. {
  598.   unsigned long int abuf_length;        /* 000 request buffer length */
  599.   unsigned char *   abuf_address;       /* 000 4 byte pointer to     */
  600.                                         /* 000 return buffer address */
  601. }
  602. ;                                       /* 000                       */
  603.  
  604. /*********************************************************************/
  605. /*                Free communications buffer       (124)             */
  606. /*********************************************************************/
  607.  
  608. struct HLDFreeCommBuff                  /* 000 Free Communication    */
  609.                                         /* buffer structure          */
  610. {
  611.   unsigned long int fbuf_length;        /* 000 buffer length to free */
  612.   unsigned char *   fbuf_address;       /* 000 4 byte buffer addr    */
  613. }
  614. ;                                       /* 000                       */
  615.  
  616. /*********************************************************************/
  617. /*                Get Async Request completion     (125)             */
  618. /*********************************************************************/
  619.  
  620. struct HLDGetAsyncCompletion            /* 000 Get Async Request     */
  621.                                         /* Completion structure      */
  622. {
  623.   unsigned char gcmp_shortname;         /* 000 Session Shortname     */
  624.   unsigned char gcmp_extendedname[3];   /* RESERVED                  */
  625.   unsigned char gcmp_option;            /* 000 Wait option           */
  626.   unsigned char gcmp_reserved[3];       /* RESERVED                  */
  627.   unsigned short int gcmp_requestid;    /* 000 request id            */
  628.   unsigned short int gcmp_ret_functid;  /* 000 returned function id  */
  629.   unsigned char  *   gcmp_ret_datastr;  /* 000 4 byte pointer to     */
  630.                                         /* 000 returned datastring   */
  631.   unsigned long  int gcmp_ret_length;   /* 000 returned length       */
  632.   unsigned long  int gcmp_ret_retcode;  /* 000 returned return code  */
  633. }
  634. ;                                       /* 000                       */
  635.  
  636. /*********************************************************************/
  637. /*                Read  Structured Field            (126)            */
  638. /*********************************************************************/
  639.  
  640. struct HLDReadSF                        /* 000 Read SF structure     */
  641. {
  642.   unsigned char rdsf_shortname;         /* 000 Session Shortname     */
  643.   unsigned char rdsf_extendedname[3];   /* RESERVED                  */
  644.   unsigned char rdsf_option;            /* 000 Wait option           */
  645.   unsigned char rdsf_reserved1;         /* RESERVED                  */
  646.   unsigned short int rdsf_doid;         /* 000 destination/orgin id  */
  647.   unsigned char  *   rdsf_buffer;       /* 000 4 byte pointer to     */
  648.                                         /* 000 read buffer           */
  649.   unsigned short int rdsf_requestid;    /* 000 request id            */
  650.   unsigned char rdsf_reserved2[2];      /* RESERVED                  */
  651.   WAIT_OBJECT        rdsf_wait;         /* wait_object union         */
  652.                                         /*                           */
  653. }
  654. ;                                       /* 000                       */
  655.  
  656. /*********************************************************************/
  657. /*               Write Structured Field            (127)             */
  658. /*********************************************************************/
  659.  
  660. struct HLDWriteSF                       /* 000 Write SF structure    */
  661. {
  662.   unsigned char wrsf_shortname;         /* 000 Session Shortname     */
  663.   unsigned char wrsf_extendedname[3];   /* RESERVED                  */
  664.   unsigned char wrsf_option;            /* 000 Wait option           */
  665.   unsigned char wrsf_reserved1;         /* RESERVED                  */
  666.   unsigned short int wrsf_doid;         /* 000 destination/orgin id  */
  667.   unsigned char  *   wrsf_buffer;       /* 000 4 byte pointer to     */
  668.                                         /* 000 write buffer          */
  669.   unsigned short int wrsf_requestid;    /* 000 request id            */
  670.   unsigned char wrsf_reserved2[2];      /* RESERVED                  */
  671.   WAIT_OBJECT        wrsf_wait;         /* wait_object union         */
  672.                                         /*                           */
  673. }
  674. ;                                       /* 000                       */
  675.  
  676. #ifdef __cplusplus
  677.   }
  678. #endif
  679.  
  680. #endif // #ifdef HLLSTR32_HEAD
  681.