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 use shared::minwindef::DWORD;
7 pub const SHTDN_REASON_FLAG_COMMENT_REQUIRED: DWORD = 0x01000000;
8 pub const SHTDN_REASON_FLAG_DIRTY_PROBLEM_ID_REQUIRED: DWORD = 0x02000000;
9 pub const SHTDN_REASON_FLAG_CLEAN_UI: DWORD = 0x04000000;
10 pub const SHTDN_REASON_FLAG_DIRTY_UI: DWORD = 0x08000000;
11 pub const SHTDN_REASON_FLAG_USER_DEFINED: DWORD = 0x40000000;
12 pub const SHTDN_REASON_FLAG_PLANNED: DWORD = 0x80000000;
13 pub const SHTDN_REASON_MAJOR_OTHER: DWORD = 0x00000000;
14 pub const SHTDN_REASON_MAJOR_NONE: DWORD = 0x00000000;
15 pub const SHTDN_REASON_MAJOR_HARDWARE: DWORD = 0x00010000;
16 pub const SHTDN_REASON_MAJOR_OPERATINGSYSTEM: DWORD = 0x00020000;
17 pub const SHTDN_REASON_MAJOR_SOFTWARE: DWORD = 0x00030000;
18 pub const SHTDN_REASON_MAJOR_APPLICATION: DWORD = 0x00040000;
19 pub const SHTDN_REASON_MAJOR_SYSTEM: DWORD = 0x00050000;
20 pub const SHTDN_REASON_MAJOR_POWER: DWORD = 0x00060000;
21 pub const SHTDN_REASON_MAJOR_LEGACY_API: DWORD = 0x00070000;
22 pub const SHTDN_REASON_MINOR_OTHER: DWORD = 0x00000000;
23 pub const SHTDN_REASON_MINOR_NONE: DWORD = 0x000000ff;
24 pub const SHTDN_REASON_MINOR_MAINTENANCE: DWORD = 0x00000001;
25 pub const SHTDN_REASON_MINOR_INSTALLATION: DWORD = 0x00000002;
26 pub const SHTDN_REASON_MINOR_UPGRADE: DWORD = 0x00000003;
27 pub const SHTDN_REASON_MINOR_RECONFIG: DWORD = 0x00000004;
28 pub const SHTDN_REASON_MINOR_HUNG: DWORD = 0x00000005;
29 pub const SHTDN_REASON_MINOR_UNSTABLE: DWORD = 0x00000006;
30 pub const SHTDN_REASON_MINOR_DISK: DWORD = 0x00000007;
31 pub const SHTDN_REASON_MINOR_PROCESSOR: DWORD = 0x00000008;
32 pub const SHTDN_REASON_MINOR_NETWORKCARD: DWORD = 0x00000009;
33 pub const SHTDN_REASON_MINOR_POWER_SUPPLY: DWORD = 0x0000000a;
34 pub const SHTDN_REASON_MINOR_CORDUNPLUGGED: DWORD = 0x0000000b;
35 pub const SHTDN_REASON_MINOR_ENVIRONMENT: DWORD = 0x0000000c;
36 pub const SHTDN_REASON_MINOR_HARDWARE_DRIVER: DWORD = 0x0000000d;
37 pub const SHTDN_REASON_MINOR_OTHERDRIVER: DWORD = 0x0000000e;
38 pub const SHTDN_REASON_MINOR_BLUESCREEN: DWORD = 0x0000000F;
39 pub const SHTDN_REASON_MINOR_SERVICEPACK: DWORD = 0x00000010;
40 pub const SHTDN_REASON_MINOR_HOTFIX: DWORD = 0x00000011;
41 pub const SHTDN_REASON_MINOR_SECURITYFIX: DWORD = 0x00000012;
42 pub const SHTDN_REASON_MINOR_SECURITY: DWORD = 0x00000013;
43 pub const SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY: DWORD = 0x00000014;
44 pub const SHTDN_REASON_MINOR_WMI: DWORD = 0x00000015;
45 pub const SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL: DWORD = 0x00000016;
46 pub const SHTDN_REASON_MINOR_HOTFIX_UNINSTALL: DWORD = 0x00000017;
47 pub const SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL: DWORD = 0x00000018;
48 pub const SHTDN_REASON_MINOR_MMC: DWORD = 0x00000019;
49 pub const SHTDN_REASON_MINOR_SYSTEMRESTORE: DWORD = 0x0000001a;
50 pub const SHTDN_REASON_MINOR_TERMSRV: DWORD = 0x00000020;
51 pub const SHTDN_REASON_MINOR_DC_PROMOTION: DWORD = 0x00000021;
52 pub const SHTDN_REASON_MINOR_DC_DEMOTION: DWORD = 0x00000022;
53 pub const SHTDN_REASON_UNKNOWN: DWORD = SHTDN_REASON_MINOR_NONE;
54 pub const SHTDN_REASON_LEGACY_API: DWORD = SHTDN_REASON_MAJOR_LEGACY_API
55     | SHTDN_REASON_FLAG_PLANNED;
56 pub const SHTDN_REASON_VALID_BIT_MASK: DWORD = 0xc0ffffff;
57 pub const PCLEANUI: DWORD = SHTDN_REASON_FLAG_PLANNED | SHTDN_REASON_FLAG_CLEAN_UI;
58 pub const UCLEANUI: DWORD = SHTDN_REASON_FLAG_CLEAN_UI;
59 pub const PDIRTYUI: DWORD = SHTDN_REASON_FLAG_PLANNED | SHTDN_REASON_FLAG_DIRTY_UI;
60 pub const UDIRTYUI: DWORD = SHTDN_REASON_FLAG_DIRTY_UI;
61