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