]> git.proxmox.com Git - rustc.git/blame - vendor/winapi/src/shared/lmcons.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / vendor / winapi / src / shared / lmcons.rs
CommitLineData
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.
7use shared::minwindef::DWORD;
8use um::winnt::{LPCWSTR, LPWSTR};
9pub const CNLEN: DWORD = 15;
10pub const LM20_CNLEN: DWORD = 15;
11pub const DNLEN: DWORD = CNLEN;
12pub const LM20_DNLEN: DWORD = LM20_CNLEN;
13pub const UNCLEN: DWORD = CNLEN + 2;
14pub const LM20_UNCLEN: DWORD = LM20_CNLEN + 2;
15pub const NNLEN: DWORD = 80;
16pub const LM20_NNLEN: DWORD = 12;
17pub const RMLEN: DWORD = UNCLEN + 1 + NNLEN;
18pub const LM20_RMLEN: DWORD = LM20_UNCLEN + 1 + LM20_NNLEN;
19pub const SNLEN: usize = 80;
20pub const LM20_SNLEN: DWORD = 15;
21pub const STXTLEN: DWORD = 256;
22pub const LM20_STXTLEN: DWORD = 63;
23pub const PATHLEN: DWORD = 256;
24pub const LM20_PATHLEN: DWORD = 256;
25pub const DEVLEN: DWORD = 80;
26pub const LM20_DEVLEN: DWORD = 8;
27pub const EVLEN: usize = 16;
28pub const UNLEN: DWORD = 256;
29pub const LM20_UNLEN: DWORD = 20;
30pub const GNLEN: DWORD = UNLEN;
31pub const LM20_GNLEN: DWORD = LM20_UNLEN;
32pub const PWLEN: DWORD = 256;
33pub const LM20_PWLEN: DWORD = 14;
34pub const SHPWLEN: DWORD = 8;
35pub const CLTYPE_LEN: DWORD = 12;
36pub const MAXCOMMENTSZ: DWORD = 256;
37pub const LM20_MAXCOMMENTSZ: DWORD = 48;
38pub const QNLEN: DWORD = NNLEN;
39pub const LM20_QNLEN: DWORD = LM20_NNLEN;
40pub const ALERTSZ: DWORD = 128;
41pub const MAXDEVENTRIES: DWORD = 4 * 8; // FIXME: sizeof(int) instead of 4
42pub const NETBIOS_NAME_LEN: DWORD = 16;
43pub const MAX_PREFERRED_LENGTH: DWORD = -1i32 as u32;
44pub const CRYPT_KEY_LEN: DWORD = 7;
45pub const CRYPT_TXT_LEN: DWORD = 8;
46pub const ENCRYPTED_PWLEN: usize = 16;
47pub const SESSION_PWLEN: DWORD = 24;
48pub const SESSION_CRYPT_KLEN: DWORD = 21;
49pub const PARM_ERROR_UNKNOWN: DWORD = -1i32 as u32;
50pub const PARM_ERROR_NONE: DWORD = 0;
51pub const PARMNUM_BASE_INFOLEVEL: DWORD = 1000;
52pub type LMSTR = LPWSTR;
53pub type LMCSTR = LPCWSTR;
54pub type NET_API_STATUS = DWORD;
55pub type API_RET_TYPE = NET_API_STATUS;
56pub const PLATFORM_ID_DOS: DWORD = 300;
57pub const PLATFORM_ID_OS2: DWORD = 400;
58pub const PLATFORM_ID_NT: DWORD = 500;
59pub const PLATFORM_ID_OSF: DWORD = 600;
60pub const PLATFORM_ID_VMS: DWORD = 700;