OSDN Git Service

645a5dd646506de506e2bbd0be12c5f73752bc16
[mingw/mingw-org-wsl.git] / include / reason.h
1 /**
2  * @file reason.h
3  * @copy 2012 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _REASON_H
25 #define _REASON_H
26 #pragma GCC system_header
27
28 #if (_WIN32_WINNT >= 0x0501)
29 #define SHTDN_REASON_MAJOR_APPLICATION 0x00040000
30 #define SHTDN_REASON_MAJOR_HARDWARE 0x00010000
31 #define SHTDN_REASON_MAJOR_LEGACY_API 0x00070000
32 #define SHTDN_REASON_MAJOR_OPERATINGSYSTEM 0x00020000
33 #define SHTDN_REASON_MAJOR_OTHER 0x00000000
34 #define SHTDN_REASON_MAJOR_POWER 0x00060000
35 #define SHTDN_REASON_MAJOR_SOFTWARE 0x00030000
36 #define SHTDN_REASON_MAJOR_SYSTEM 0x00050000
37 #define SHTDN_REASON_MINOR_BLUESCREEN 0x0000000F
38 #define SHTDN_REASON_MINOR_CORDUNPLUGGED 0x0000000b
39 #define SHTDN_REASON_MINOR_DISK 0x00000007
40 #define SHTDN_REASON_MINOR_ENVIRONMENT 0x0000000c
41 #define SHTDN_REASON_MINOR_HARDWARE_DRIVER 0x0000000d 
42 #define SHTDN_REASON_MINOR_HOTFIX 0x00000011
43 #define SHTDN_REASON_MINOR_HOTFIX_UNINSTALL 0x00000017
44 #define SHTDN_REASON_MINOR_HUNG 0x00000005
45 #define SHTDN_REASON_MINOR_INSTALLATION 0x00000002
46 #define SHTDN_REASON_MINOR_MAINTENANCE 0x00000001
47 #define SHTDN_REASON_MINOR_MMC 0x00000019
48 #define SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY 0x00000014
49 #define SHTDN_REASON_MINOR_NETWORKCARD 0x00000009
50 #define SHTDN_REASON_MINOR_OTHER 0x00000000
51 #define SHTDN_REASON_MINOR_OTHERDRIVER 0x0000000e
52 #define SHTDN_REASON_MINOR_POWER_SUPPLY 0x0000000a
53 #define SHTDN_REASON_MINOR_PROCESSOR 0x00000008
54 #define SHTDN_REASON_MINOR_RECONFIG 0x00000004
55 #define SHTDN_REASON_MINOR_SECURITY 0x00000013
56 #define SHTDN_REASON_MINOR_SECURITYFIX 0x00000012
57 #define SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL 0x00000018
58 #define SHTDN_REASON_MINOR_SERVICEPACK 0x00000010
59 #define SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL 0x00000016
60 #define SHTDN_REASON_MINOR_TERMSRV 0x00000020
61 #define SHTDN_REASON_MINOR_UNSTABLE 0x00000006
62 #define SHTDN_REASON_MINOR_UPGRADE 0x00000003
63 #define SHTDN_REASON_MINOR_WMI 0x00000015
64 #define SHTDN_REASON_FLAG_USER_DEFINED 0x40000000
65 #define SHTDN_REASON_FLAG_PLANNED 0x80000000
66 #endif /* (WIN32_WINNT >= 0x0501) */
67
68 #endif