home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pc3270sa.zip
/
pcsapi16.h
< prev
next >
Wrap
Text File
|
2002-02-28
|
4KB
|
76 lines
/*****************************************************************************/
/* */
/* Module Name : PCSAPI16.H */
/* */
/* Description : 16 Bit PCSAPI Return Codes and Routines */
/* */
/* Copyright Notice: IBM Personal Communication/3270 Version 4.1 */
/* (C) COPYRIGHT IBM CORP. 1984,1996 - PROGRAM PROPERTY */
/* OF IBM ALL RIGHTS RESERVED */
/* */
/*---------------------------------------------------------------------------*/
/* Function: */
/* */
/* Define the PCSAPI return code constants and the external */
/* routines. */
/* */
/* Change Activity: */
/* */
/* Defects */
/* ==========================================================================*/
/* flag Defect# rls date name description of change */
/* $P1 DF45036 4.20 05/17/99 CIL pcsConnectSession fails */
/*****************************************************************************/
#ifdef __cplusplus /* C++ compiler */
extern "C" {
#endif
/*--------------------------------------------------------------------------*/
/* General Purpose Definition */
/*--------------------------------------------------------------------------*/
#define MAXPATHLEN 100
/*--------------------------------------------------------------------------*/
/* Definition for Query Session Status */
/*--------------------------------------------------------------------------*/
#define PCS_SESSION_STARTED 0x0001
#define PCS_SESSION_ONLINE 0x0002
#define PCS_SESSION_API_ENABLED 0x0004
#define PCS_SESSION_INTERIM_STATE 0x0008 //@P1a
/*--------------------------------------------------------------------------*/
/* Definition for Start Session */
/*--------------------------------------------------------------------------*/
#define PCS_SUCCESSFUL 0
#define PCS_INVALID_ID 1
#define PCS_USED_ID 2
#define PCS_INVALID_PROFILE 3
#define PCS_SYSTEM_ERROR 9
/*--------------------------------------------------------------------------*/
/* Definition for Stop Session */
/*--------------------------------------------------------------------------*/
#define PCS_SAVE_AS_PROFILE 0
#define PCS_SAVE_ON_EXIT 1
#define PCS_NOSAVE_ON_EXIT 2
/*--------------------------------------------------------------------------*/
/* Function Prototypes */
/*--------------------------------------------------------------------------*/
extern WORD far pascal pcsQueryEmulatorStatus(char);
extern BOOL far pascal pcsQueryWorkstationProfile(char, LPSTR);
extern WORD far pascal pcsStartSession(LPSTR, char, WORD);
extern BOOL far pascal pcsStopSession(char, WORD);
extern BOOL far pascal pcsConnectSession(char);
extern BOOL far pascal pcsDisconnectSession(char);
extern WORD far pascal pcsSetLinkTimeout(char, WORD);
#ifdef __cplusplus
}
#endif