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