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 //! Public header file for Windows NT Setup and Device Installer services Dlls
7 use shared::minwindef::DWORD;
8 use um::winnt::DWORDLONG;
9 pub type SP_LOG_TOKEN = DWORDLONG;
10 pub type PSP_LOG_TOKEN = *mut DWORDLONG;
11 pub const LOGTOKEN_TYPE_MASK: SP_LOG_TOKEN = 3;
12 pub const LOGTOKEN_UNSPECIFIED: SP_LOG_TOKEN = 0;
13 pub const LOGTOKEN_NO_LOG: SP_LOG_TOKEN = 1;
14 pub const LOGTOKEN_SETUPAPI_APPLOG: SP_LOG_TOKEN = 2;
15 pub const LOGTOKEN_SETUPAPI_DEVLOG: SP_LOG_TOKEN = 3;
16 pub const TXTLOG_SETUPAPI_DEVLOG: DWORD = 0x00000001;
17 pub const TXTLOG_SETUPAPI_CMDLINE: DWORD = 0x00000002;
18 pub const TXTLOG_SETUPAPI_BITS: DWORD = 0x00000003;
19 pub const TXTLOG_ERROR: DWORD = 0x1;
20 pub const TXTLOG_WARNING: DWORD = 0x2;
21 pub const TXTLOG_SYSTEM_STATE_CHANGE: DWORD = 0x3;
22 pub const TXTLOG_SUMMARY: DWORD = 0x4;
23 pub const TXTLOG_DETAILS: DWORD = 0x5;
24 pub const TXTLOG_VERBOSE: DWORD = 0x6;
25 pub const TXTLOG_VERY_VERBOSE: DWORD = 0x7;
26 pub const TXTLOG_RESERVED_FLAGS: DWORD = 0x0000FFF0;
27 pub const TXTLOG_TIMESTAMP: DWORD = 0x00010000;
28 pub const TXTLOG_DEPTH_INCR: DWORD = 0x00020000;
29 pub const TXTLOG_DEPTH_DECR: DWORD = 0x00040000;
30 pub const TXTLOG_TAB_1: DWORD = 0x00080000;
31 pub const TXTLOG_FLUSH_FILE: DWORD = 0x00100000;
32 #[inline]
TXTLOG_LEVEL(flags: DWORD) -> DWORD33 pub fn TXTLOG_LEVEL(flags: DWORD) -> DWORD {
34     flags & 0xf
35 }
36 pub const TXTLOG_DEVINST: DWORD = 0x00000001;
37 pub const TXTLOG_INF: DWORD = 0x00000002;
38 pub const TXTLOG_FILEQ: DWORD = 0x00000004;
39 pub const TXTLOG_COPYFILES: DWORD = 0x00000008;
40 pub const TXTLOG_SIGVERIF: DWORD = 0x00000020;
41 pub const TXTLOG_BACKUP: DWORD = 0x00000080;
42 pub const TXTLOG_UI: DWORD = 0x00000100;
43 pub const TXTLOG_UTIL: DWORD = 0x00000200;
44 pub const TXTLOG_INFDB: DWORD = 0x00000400;
45 pub const TXTLOG_POLICY: DWORD = 0x00800000;
46 pub const TXTLOG_NEWDEV: DWORD = 0x01000000;
47 pub const TXTLOG_UMPNPMGR: DWORD = 0x02000000;
48 pub const TXTLOG_DRIVER_STORE: DWORD = 0x04000000;
49 pub const TXTLOG_SETUP: DWORD = 0x08000000;
50 pub const TXTLOG_CMI: DWORD = 0x10000000;
51 pub const TXTLOG_DEVMGR: DWORD = 0x20000000;
52 pub const TXTLOG_INSTALLER: DWORD = 0x40000000;
53 pub const TXTLOG_VENDOR: DWORD = 0x80000000;
54