home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / k95source / cknlat.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  2KB  |  51 lines

  1. /*
  2.   Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New
  3.   York.
  4. */
  5.  
  6. #ifndef CKNLAT_H
  7. #define CKNLAT_H
  8.  
  9. /* From DEC Pathworks 7.0 SDK (DECTAL.H) */
  10.  
  11. #define TALCALL __declspec(dllimport)
  12.  
  13. /******************************************************************************
  14. ;                                                                             *
  15. ; Definition Declarations provided in DECTAL.DLL                              *
  16. ;                                                                             *
  17. ******************************************************************************/
  18. #define SERVICENAME_LENGTH    256      /* max Length of service name         */
  19. #define PASSWORD_LENGTH        32      /* max Length of password             */
  20.  
  21. #define LAT_ACCESS              1       /* Access the LAT driver            */
  22. #define TELNET_ACCESS           2       /* Access the TELNET driver         */
  23. #define CTERM_ACCESS            3       /* Access the CTERM driver          */
  24.  
  25. typedef struct _TelnetConnectData {
  26.     LPSTR   TCD_Terminal_Type;
  27.     DWORD   TCD_Port_Number;
  28. } Telnet_Connect_Data;
  29.  
  30. /***************************************************************************/
  31. /***************************************************************************/
  32.  
  33. /* Error Return Codes */
  34.  
  35. #define TAL_SUCCESS           0  /* Generic success return value */
  36. #define TAL_SESSIONFAIL      -1  /* invalid session id, or session gone */
  37.                                  /* or connect failed */
  38. #define TAL_DISCONNECT       -2  /* session ended (prematurely) */
  39. #define TAL_NOTINSTALLED     -3  /* driver not installed */
  40. #define TAL_NOMORENAMES      -4  /* GetNextService ran out of names */
  41. #define TAL_BADPARAMETER     -5  /* input parameter bad */
  42. #define TAL_NORESOURCE       -6  /* ran out of a resource */
  43. #define TAL_BADCONNDATA      -7  /* for LAT, invalid password */
  44.                                  /* for CTERM, ConnectData not NULL */
  45.                                  /* for TELNET, invalid port number */
  46. #define TAL_TXQUEFULL        -8  /* unable to transmit on write */
  47. #define TAL_OTHERERROR       -9  /* use GetDetailError for details */
  48.  
  49. #endif /* CKNLAT_H */
  50.  
  51.