1 | #ifndef _LMCONS_H
|
---|
2 | #define _LMCONS_H
|
---|
3 | #if __GNUC__ >=3
|
---|
4 | #pragma GCC system_header
|
---|
5 | #endif
|
---|
6 |
|
---|
7 | #define MESSAGE_FILENAME TEXT("NETMSG")
|
---|
8 | #define OS2MSG_FILENAME TEXT("BASE")
|
---|
9 | #define HELP_MSG_FILENAME TEXT("NETH")
|
---|
10 | #define NET_API_FUNCTION __stdcall
|
---|
11 | #define NET_API_STATUS DWORD
|
---|
12 | #define API_RET_TYPE NET_API_STATUS
|
---|
13 | #define MIN_LANMAN_MESSAGE_ID NERR_BASE
|
---|
14 | #define MAX_LANMAN_MESSAGE_ID 5799
|
---|
15 | #ifndef CNLEN /* also in nddeapi.h */
|
---|
16 | #define CNLEN 15
|
---|
17 | #define UNCLEN (CNLEN + 2)
|
---|
18 | #endif
|
---|
19 | #define DNLEN 15
|
---|
20 | #define LM20_CNLEN 15
|
---|
21 | #define LM20_DNLEN 15
|
---|
22 | #define LM20_SNLEN 15
|
---|
23 | #define LM20_STXTLEN 63
|
---|
24 | #define LM20_UNCLEN (LM20_CNLEN+2)
|
---|
25 | #define LM20_NNLEN 12
|
---|
26 | #define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
|
---|
27 | #define NNLEN 80
|
---|
28 | #define RMLEN (UNCLEN+1+NNLEN)
|
---|
29 | #define SNLEN 80
|
---|
30 | #define STXTLEN 256
|
---|
31 | #define PATHLEN 256
|
---|
32 | #define LM20_PATHLEN 256
|
---|
33 | #define DEVLEN 80
|
---|
34 | #define LM20_DEVLEN 8
|
---|
35 | #define EVLEN 16
|
---|
36 | #define UNLEN 256
|
---|
37 | #define LM20_UNLEN 20
|
---|
38 | #define GNLEN UNLEN
|
---|
39 | #define LM20_GNLEN LM20_UNLEN
|
---|
40 | #define PWLEN 256
|
---|
41 | #define LM20_PWLEN 14
|
---|
42 | #define SHPWLEN 8
|
---|
43 | #define CLTYPE_LEN 12
|
---|
44 | #define MAXCOMMENTSZ 256
|
---|
45 | #define LM20_MAXCOMMENTSZ 48
|
---|
46 | #define QNLEN NNLEN
|
---|
47 | #define LM20_QNLEN LM20_NNLEN
|
---|
48 | #define ALERTSZ 128
|
---|
49 | #define MAXDEVENTRIES (sizeof(int)*8)
|
---|
50 | #define NETBIOS_NAME_LEN 16
|
---|
51 | #define MAX_PREFERRED_LENGTH ((DWORD)-1)
|
---|
52 | #define CRYPT_KEY_LEN 7
|
---|
53 | #define CRYPT_TXT_LEN 8
|
---|
54 | #define ENCRYPTED_PWLEN 16
|
---|
55 | #define SESSION_PWLEN 24
|
---|
56 | #define SESSION_CRYPT_KLEN 21
|
---|
57 | #define PARMNUM_ALL 0
|
---|
58 | #define PARM_ERROR_UNKNOWN ((DWORD)-1)
|
---|
59 | #define PARM_ERROR_NONE 0
|
---|
60 | #define PARMNUM_BASE_INFOLEVEL 1000
|
---|
61 | #define PLATFORM_ID_DOS 300
|
---|
62 | #define PLATFORM_ID_OS2 400
|
---|
63 | #define PLATFORM_ID_NT 500
|
---|
64 | #define PLATFORM_ID_OSF 600
|
---|
65 | #define PLATFORM_ID_VMS 700
|
---|
66 | /* new typedef in W2K */
|
---|
67 | #if defined( _WIN32_WINNT ) || defined( WINNT ) || defined( FORCE_UNICODE )
|
---|
68 | #define LMSTR LPWSTR
|
---|
69 | #define LMCSTR LPCWSTR
|
---|
70 | #else
|
---|
71 | #define LMSTR LPSTR
|
---|
72 | #define LMCSTR LPCSTR
|
---|
73 | #endif
|
---|
74 |
|
---|
75 | #endif
|
---|