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

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*  Module Name     : PCSAPI16.H                                             */
  4. /*                                                                           */
  5. /*  Description     : 16 Bit PCSAPI Return Codes and Routines                */
  6. /*                                                                           */
  7. /*  Copyright Notice: IBM Personal Communication/3270 Version 4.1            */
  8. /*                    (C) COPYRIGHT IBM CORP. 1984,1996 - PROGRAM PROPERTY   */
  9. /*                    OF IBM ALL RIGHTS RESERVED                             */
  10. /*                                                                           */
  11. /*---------------------------------------------------------------------------*/
  12. /*  Function:                                                                */
  13. /*                                                                           */
  14. /*    Define the PCSAPI return code constants and the external               */
  15. /*    routines.                                                              */
  16. /*                                                                           */
  17. /* Change Activity:                                                          */
  18. /*                                                                           */
  19. /* Defects                                                                   */
  20. /* ==========================================================================*/
  21. /*  flag   Defect#    rls  date    name description of change                */
  22. /*  $P1    DF45036   4.20 05/17/99 CIL  pcsConnectSession fails              */
  23. /*****************************************************************************/
  24.  
  25. #ifdef __cplusplus                     /* C++ compiler                       */
  26.   extern "C" {
  27. #endif
  28.  
  29. /*--------------------------------------------------------------------------*/
  30. /*  General Purpose Definition                                              */
  31. /*--------------------------------------------------------------------------*/
  32. #define MAXPATHLEN                   100
  33.  
  34. /*--------------------------------------------------------------------------*/
  35. /*  Definition for Query Session Status                                     */
  36. /*--------------------------------------------------------------------------*/
  37.  
  38. #define PCS_SESSION_STARTED          0x0001
  39. #define PCS_SESSION_ONLINE           0x0002
  40. #define PCS_SESSION_API_ENABLED      0x0004
  41. #define PCS_SESSION_INTERIM_STATE    0x0008                        //@P1a
  42.  
  43. /*--------------------------------------------------------------------------*/
  44. /*  Definition for Start Session                                            */
  45. /*--------------------------------------------------------------------------*/
  46.  
  47. #define PCS_SUCCESSFUL               0
  48. #define PCS_INVALID_ID               1
  49. #define PCS_USED_ID                  2
  50. #define PCS_INVALID_PROFILE          3
  51. #define PCS_SYSTEM_ERROR             9
  52.  
  53. /*--------------------------------------------------------------------------*/
  54. /*  Definition for Stop Session                                             */
  55. /*--------------------------------------------------------------------------*/
  56.  
  57. #define PCS_SAVE_AS_PROFILE          0
  58. #define PCS_SAVE_ON_EXIT             1
  59. #define PCS_NOSAVE_ON_EXIT           2
  60.  
  61. /*--------------------------------------------------------------------------*/
  62. /*  Function Prototypes                                                     */
  63. /*--------------------------------------------------------------------------*/
  64.  
  65. extern WORD far pascal pcsQueryEmulatorStatus(char);
  66. extern BOOL far pascal pcsQueryWorkstationProfile(char, LPSTR);
  67. extern WORD far pascal pcsStartSession(LPSTR, char, WORD);
  68. extern BOOL far pascal pcsStopSession(char, WORD);
  69. extern BOOL far pascal pcsConnectSession(char);
  70. extern BOOL far pascal pcsDisconnectSession(char);
  71. extern WORD far pascal pcsSetLinkTimeout(char, WORD);
  72.  
  73. #ifdef __cplusplus
  74.   }
  75. #endif
  76.