]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | // Licensed under the Apache License, Version 2.0 |
2 | // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
3 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. | |
4 | // All files in the project carrying such notice may not be copied, modified, or distributed | |
5 | // except according to those terms. | |
6 | //! This file contains constants used throughout the LAN Manager API header files. | |
7 | use shared::minwindef::DWORD; | |
8 | use um::winnt::{LPCWSTR, LPWSTR}; | |
9 | pub const CNLEN: DWORD = 15; | |
10 | pub const LM20_CNLEN: DWORD = 15; | |
11 | pub const DNLEN: DWORD = CNLEN; | |
12 | pub const LM20_DNLEN: DWORD = LM20_CNLEN; | |
13 | pub const UNCLEN: DWORD = CNLEN + 2; | |
14 | pub const LM20_UNCLEN: DWORD = LM20_CNLEN + 2; | |
15 | pub const NNLEN: DWORD = 80; | |
16 | pub const LM20_NNLEN: DWORD = 12; | |
17 | pub const RMLEN: DWORD = UNCLEN + 1 + NNLEN; | |
18 | pub const LM20_RMLEN: DWORD = LM20_UNCLEN + 1 + LM20_NNLEN; | |
19 | pub const SNLEN: usize = 80; | |
20 | pub const LM20_SNLEN: DWORD = 15; | |
21 | pub const STXTLEN: DWORD = 256; | |
22 | pub const LM20_STXTLEN: DWORD = 63; | |
23 | pub const PATHLEN: DWORD = 256; | |
24 | pub const LM20_PATHLEN: DWORD = 256; | |
25 | pub const DEVLEN: DWORD = 80; | |
26 | pub const LM20_DEVLEN: DWORD = 8; | |
27 | pub const EVLEN: usize = 16; | |
28 | pub const UNLEN: DWORD = 256; | |
29 | pub const LM20_UNLEN: DWORD = 20; | |
30 | pub const GNLEN: DWORD = UNLEN; | |
31 | pub const LM20_GNLEN: DWORD = LM20_UNLEN; | |
32 | pub const PWLEN: DWORD = 256; | |
33 | pub const LM20_PWLEN: DWORD = 14; | |
34 | pub const SHPWLEN: DWORD = 8; | |
35 | pub const CLTYPE_LEN: DWORD = 12; | |
36 | pub const MAXCOMMENTSZ: DWORD = 256; | |
37 | pub const LM20_MAXCOMMENTSZ: DWORD = 48; | |
38 | pub const QNLEN: DWORD = NNLEN; | |
39 | pub const LM20_QNLEN: DWORD = LM20_NNLEN; | |
40 | pub const ALERTSZ: DWORD = 128; | |
41 | pub const MAXDEVENTRIES: DWORD = 4 * 8; // FIXME: sizeof(int) instead of 4 | |
42 | pub const NETBIOS_NAME_LEN: DWORD = 16; | |
43 | pub const MAX_PREFERRED_LENGTH: DWORD = -1i32 as u32; | |
44 | pub const CRYPT_KEY_LEN: DWORD = 7; | |
45 | pub const CRYPT_TXT_LEN: DWORD = 8; | |
46 | pub const ENCRYPTED_PWLEN: usize = 16; | |
47 | pub const SESSION_PWLEN: DWORD = 24; | |
48 | pub const SESSION_CRYPT_KLEN: DWORD = 21; | |
49 | pub const PARM_ERROR_UNKNOWN: DWORD = -1i32 as u32; | |
50 | pub const PARM_ERROR_NONE: DWORD = 0; | |
51 | pub const PARMNUM_BASE_INFOLEVEL: DWORD = 1000; | |
52 | pub type LMSTR = LPWSTR; | |
53 | pub type LMCSTR = LPCWSTR; | |
54 | pub type NET_API_STATUS = DWORD; | |
55 | pub type API_RET_TYPE = NET_API_STATUS; | |
56 | pub const PLATFORM_ID_DOS: DWORD = 300; | |
57 | pub const PLATFORM_ID_OS2: DWORD = 400; | |
58 | pub const PLATFORM_ID_NT: DWORD = 500; | |
59 | pub const PLATFORM_ID_OSF: DWORD = 600; | |
60 | pub const PLATFORM_ID_VMS: DWORD = 700; |