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