home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / 3COMM.ZIP / H.ZIP / NETCONS.H < prev    next >
C/C++ Source or Header  |  1989-05-17  |  3KB  |  97 lines

  1. /********************************************************************/
  2. /**                   Microsoft OS|2 LAN Manager                   **/
  3. /**            Copyright(c) Microsoft Corp., 1987, 1988            **/
  4. /********************************************************************/
  5.  
  6. /********************************************************************
  7.  *                                    *
  8.  *  About this file ...  NETCONS.H                    *
  9.  *                                    *
  10.  *  This file contains constants used throughout the Lan Manager    *
  11.  *  API header files.  It should be included in any source file     *
  12.  *  that is going to include other Lan Manager API header files or  *
  13.  *  call a Lan Manager API.                        *
  14.  *                                    *
  15.  ********************************************************************/
  16.  
  17. /*
  18.  *    NOTE:  Lengths of ASCIZ strings are given as the maximum
  19.  *    strlen() value.  This does not include space for the 
  20.  *    terminating 0-byte.  When allocating space for such an item,
  21.  *    use the form:
  22.  *
  23.  *        char username[UNLEN+1];
  24.  */
  25.  
  26.  
  27.  
  28. #define CNLEN        15            /* Computer name length     */
  29. #define UNCLEN        (CNLEN+2)        /* UNC computer name length */
  30. #define NNLEN        12            /* 8.3 Net name length      */
  31. #define RMLEN        (UNCLEN+1+NNLEN)    /* Maximum remote name len  */
  32.  
  33. #define SNLEN        15            /* Service name length      */
  34. #define STXTLEN        63            /* Service text length      */
  35.  
  36. #define PATHLEN        128                  /* Maximum path name len    */
  37. #define DEVLEN         8             /* Device name length    */
  38.  
  39. #define EVLEN        16            /* event name length        */
  40. #define JOBSTLEN    80            /* status len in print job  */
  41. #define    AFLEN        64            /* Maximum length of alert  */
  42.                         /* names field         */
  43. #define UNLEN        20               /* Maximum user name length    */
  44. #define GNLEN         UNLEN            /* Group name */
  45. #define PWLEN        14            /* Maximum password length  */
  46. #define    SHPWLEN         8            /* Share password length    */
  47.  
  48.  
  49. #define MAXCOMMENTSZ    48            /* server & share comment length */
  50.  
  51. #define QNLEN        NNLEN            /* Queue name maximum length     */
  52. #define PDLEN         8            /* Print destination length      */
  53. #define DTLEN         9                /* Spool file data type          */
  54.                         /* e.g. IBMQSTD,IBMQESC,IBMQRAW  */
  55. #define ALERTSZ        128            /* size of alert string in server */
  56. #define MAXDEVENTRIES    (sizeof (int)*8)    /* Max no of device entries */
  57.                         /* We use int bitmap to represent */
  58.  
  59. #define NETBIOS_NAME_LEN    16        /* NetBios net name */
  60.  
  61.  
  62.  
  63. /*
  64.  *    Constants used with encryption
  65.  */
  66.  
  67. #define    CRYPT_KEY_LEN    7
  68. #define    CRYPT_TXT_LEN    8
  69. #define ENCRYPTED_PWLEN    16
  70. #define SESSION_PWLEN    24
  71. #define SESSION_CRYPT_KLEN 21
  72.  
  73. /*
  74.  *    Message File Name
  75.  */
  76.  
  77. #define MESSAGE_FILE        "NETPROG\\NET.MSG"
  78. #define MESSAGE_FILENAME    "NET.MSG"
  79. #define HELP_MSG_FILE        "NETPROG\\NETH.MSG"
  80. #define HELP_MSG_FILENAME    "NETH.MSG"
  81. #define NMP_MSG_FILE        "NETPROG\\NMP.MSG"
  82. #define NMP_MSG_FILENAME    "NMP.MSG"
  83.  
  84. #define NMP_LOW_END        230
  85. #define NMP_HIGH_END        240
  86.  
  87. #ifndef NULL
  88. #define  NULL    0
  89. #endif
  90.  
  91. /*NOINC*/
  92. #define API_RET_TYPE unsigned
  93. #define API_FUNCTION API_RET_TYPE far pascal
  94. /*INC*/
  95.  
  96.  
  97.