Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef NETCONS_INCLUDED
      7 
      8 #define NETCONS_INCLUDED
      9 
     10 #ifndef PASCAL
     11 #define PASCAL WINAPI
     12 #endif
     13 
     14 #ifndef FAR
     15 #define FAR
     16 #endif
     17 
     18 #define CNLEN 15
     19 #define LM20_CNLEN 15
     20 #define DNLEN CNLEN
     21 #define LM20_DNLEN LM20_CNLEN
     22 
     23 #if (CNLEN!=DNLEN)
     24 #error CNLEN and DNLEN are not equal
     25 #endif
     26 
     27 #define UNCLEN (CNLEN+2)
     28 #define LM20_UNCLEN (LM20_CNLEN+2)
     29 
     30 #define NNLEN 80
     31 #define LM20_NNLEN 12
     32 
     33 #define RMLEN (UNCLEN+1+NNLEN)
     34 #define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
     35 
     36 #define SNLEN 80
     37 #define LM20_SNLEN 15
     38 #define STXTLEN 256
     39 #define LM20_STXTLEN 63
     40 
     41 #define PATHLEN 256
     42 #define LM20_PATHLEN 256
     43 
     44 #define DEVLEN 80
     45 #define LM20_DEVLEN 8
     46 
     47 #define EVLEN 16
     48 
     49 #define UNLEN 256
     50 #define LM20_UNLEN 20
     51 
     52 #define GNLEN UNLEN
     53 #define LM20_GNLEN LM20_UNLEN
     54 
     55 #define PWLEN 256
     56 #define LM20_PWLEN 14
     57 
     58 #define SHPWLEN 8
     59 
     60 #define CLTYPE_LEN 12
     61 
     62 #define MAXCOMMENTSZ 256
     63 #define LM20_MAXCOMMENTSZ 48
     64 
     65 #define QNLEN NNLEN
     66 #define LM20_QNLEN LM20_NNLEN
     67 #if (QNLEN!=NNLEN)
     68 #error QNLEN and NNLEN are not equal
     69 #endif
     70 
     71 #define ALERTSZ 128
     72 #define MAXDEVENTRIES (sizeof (int)*8)
     73 
     74 #define NETBIOS_NAME_LEN 16
     75 
     76 #define MAX_PREFERRED_LENGTH ((DWORD) -1)
     77 
     78 #define CRYPT_KEY_LEN 7
     79 #define CRYPT_TXT_LEN 8
     80 #define ENCRYPTED_PWLEN 16
     81 #define SESSION_PWLEN 24
     82 #define SESSION_CRYPT_KLEN 21
     83 
     84 #ifndef PARMNUM_ALL
     85 #define PARMNUM_ALL 0
     86 #endif
     87 
     88 #define PARM_ERROR_UNKNOWN ((DWORD) (-1))
     89 #define PARM_ERROR_NONE 0
     90 #define PARMNUM_BASE_INFOLEVEL 1000
     91 
     92 #define LMSTR LPWSTR
     93 #define LMCSTR LPCWSTR
     94 
     95 #define MESSAGE_FILENAME TEXT("NETMSG")
     96 #define OS2MSG_FILENAME TEXT("BASE")
     97 #define HELP_MSG_FILENAME TEXT("NETH")
     98 
     99 #define BACKUP_MSG_FILENAME TEXT("BAK.MSG")
    100 
    101 #ifndef NULL
    102 #ifdef __cplusplus
    103 #ifndef _WIN64
    104 #define NULL 0
    105 #else
    106 #define NULL 0LL
    107 #endif  /* W64 */
    108 #else
    109 #define NULL ((void *)0)
    110 #endif
    111 #endif
    112 
    113 #define NET_API_STATUS DWORD
    114 #define API_RET_TYPE NET_API_STATUS
    115 #define NET_API_FUNCTION WINAPI
    116 
    117 #ifndef _NO_W32_PSEUDO_MODIFIERS
    118 #ifndef IN
    119 #define IN
    120 #endif
    121 #ifndef OUT
    122 #define OUT
    123 #endif
    124 #ifndef OPTIONAL
    125 #define OPTIONAL
    126 #endif
    127 #endif
    128 
    129 #define PLATFORM_ID_DOS 300
    130 #define PLATFORM_ID_OS2 400
    131 #define PLATFORM_ID_NT 500
    132 #define PLATFORM_ID_OSF 600
    133 #define PLATFORM_ID_VMS 700
    134 
    135 #define MIN_LANMAN_MESSAGE_ID NERR_BASE
    136 #define MAX_LANMAN_MESSAGE_ID 5899
    137 #endif
    138