1 /***********************************************************************\
2 * lmcons.d *
3 * *
4 * Windows API header module *
5 * *
6 * Translated from MinGW Windows headers *
7 * *
8 * Placed into public domain *
9 \***********************************************************************/
10 module win32.lmcons;
11 version(Windows):
12
13 private import win32.windef;
14 private import win32.lmerr; // for NERR_BASE
15
16 const TCHAR[]
17 MESSAGE_FILENAME = "NETMSG",
18 OS2MSG_FILENAME = "BASE",
19 HELP_MSG_FILENAME = "NETH";
20
21 alias DWORD NET_API_STATUS, API_RET_TYPE;
22
23 const MIN_LANMAN_MESSAGE_ID = NERR_BASE;
24 const MAX_LANMAN_MESSAGE_ID = 5799;
25
26 const CNLEN = 15; /* also in nddeapi.h */
27 const UNCLEN = CNLEN + 2;
28
29 const DNLEN = 15;
30 const LM20_CNLEN = 15;
31 const LM20_DNLEN = 15;
32 const LM20_SNLEN = 15;
33 const LM20_STXTLEN = 63;
34 const LM20_UNCLEN = LM20_CNLEN + 2;
35 const LM20_NNLEN = 12;
36 const LM20_RMLEN = LM20_UNCLEN + 1 + LM20_NNLEN;
37 const NNLEN = 80;
38 const RMLEN = UNCLEN + 1 + NNLEN;
39 const SNLEN = 80;
40 const STXTLEN = 256;
41 const PATHLEN = 256;
42 const LM20_PATHLEN = 256;
43 const DEVLEN = 80;
44 const LM20_DEVLEN = 8;
45 const EVLEN = 16;
46 const UNLEN = 256;
47 const LM20_UNLEN = 20;
48 const GNLEN = UNLEN;
49 const LM20_GNLEN = LM20_UNLEN;
50 const PWLEN = 256;
51 const LM20_PWLEN = 14;
52 const SHPWLEN = 8;
53 const CLTYPE_LEN = 12;
54 const QNLEN = NNLEN;
55 const LM20_QNLEN = LM20_NNLEN;
56
57 const MAXCOMMENTSZ = 256;
58 const LM20_MAXCOMMENTSZ = 48;
59 const ALERTSZ = 128;
60 const MAXDEVENTRIES = 32;// (sizeof(int)*8);
61 const NETBIOS_NAME_LEN = 16;
62 const DWORD MAX_PREFERRED_LENGTH = -1;
63 const CRYPT_KEY_LEN = 7;
64 const CRYPT_TXT_LEN = 8;
65 const ENCRYPTED_PWLEN = 16;
66 const SESSION_PWLEN = 24;
67 const SESSION_CRYPT_KLEN = 21;
68
69 const PARMNUM_ALL = 0;
70 const DWORD PARM_ERROR_UNKNOWN = -1;
71 const PARM_ERROR_NONE = 0;
72 const PARMNUM_BASE_INFOLEVEL = 1000;
73
74 const PLATFORM_ID_DOS = 300;
75 const PLATFORM_ID_OS2 = 400;
76 const PLATFORM_ID_NT = 500;
77 const PLATFORM_ID_OSF = 600;
78 const PLATFORM_ID_VMS = 700;
79
80 // this is a new typedef in W2K, but it should be harmless for earlier Windows versions.
81 version (Unicode) {
82 alias LPWSTR LMSTR;
83 alias LPCWSTR LMCSTR;
84 } else {
85 alias LPSTR LMSTR;
86 alias LPCSTR LMCSTR;
87 }