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