1 #ifndef _REASON_H 2 #define _REASON_H 3 4 #if _WIN32_WINNT >= 0x0501 5 6 #define SHTDN_REASON_MAJOR_APPLICATION 0x00040000 7 #define SHTDN_REASON_MAJOR_HARDWARE 0x00010000 8 #define SHTDN_REASON_MAJOR_LEGACY_API 0x00070000 9 #define SHTDN_REASON_MAJOR_OPERATINGSYSTEM 0x00020000 10 #define SHTDN_REASON_MAJOR_OTHER 0x00000000 11 #define SHTDN_REASON_MAJOR_POWER 0x00060000 12 #define SHTDN_REASON_MAJOR_SOFTWARE 0x00030000 13 #define SHTDN_REASON_MAJOR_SYSTEM 0x00050000 14 15 #define SHTDN_REASON_MINOR_BLUESCREEN 0x0000000f 16 #define SHTDN_REASON_MINOR_CORDUNPLUGGED 0x0000000b 17 #define SHTDN_REASON_MINOR_DISK 0x00000007 18 #define SHTDN_REASON_MINOR_ENVIRONMENT 0x0000000c 19 #define SHTDN_REASON_MINOR_HARDWARE_DRIVER 0x0000000d 20 #define SHTDN_REASON_MINOR_HOTFIX 0x00000011 21 #define SHTDN_REASON_MINOR_HOTFIX_UNINSTALL 0x00000017 22 #define SHTDN_REASON_MINOR_HUNG 0x00000005 23 #define SHTDN_REASON_MINOR_INSTALLATION 0x00000002 24 #define SHTDN_REASON_MINOR_MAINTENANCE 0x00000001 25 #define SHTDN_REASON_MINOR_MMC 0x00000019 26 #define SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY 0x00000014 27 #define SHTDN_REASON_MINOR_NETWORKCARD 0x00000009 28 #define SHTDN_REASON_MINOR_OTHER 0x00000000 29 #define SHTDN_REASON_MINOR_OTHERDRIVER 0x0000000e 30 #define SHTDN_REASON_MINOR_POWER_SUPPLY 0x0000000a 31 #define SHTDN_REASON_MINOR_PROCESSOR 0x00000008 32 #define SHTDN_REASON_MINOR_RECONFIG 0x00000004 33 #define SHTDN_REASON_MINOR_SECURITY 0x00000013 34 #define SHTDN_REASON_MINOR_SECURITYFIX 0x00000012 35 #define SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL 0x00000018 36 #define SHTDN_REASON_MINOR_SERVICEPACK 0x00000010 37 #define SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL 0x00000016 38 #define SHTDN_REASON_MINOR_TERMSRV 0x00000020 39 #define SHTDN_REASON_MINOR_UNSTABLE 0x00000006 40 #define SHTDN_REASON_MINOR_UPGRADE 0x00000003 41 #define SHTDN_REASON_MINOR_WMI 0x00000015 42 43 #define SHTDN_REASON_FLAG_USER_DEFINED 0x40000000 44 #define SHTDN_REASON_FLAG_PLANNED 0x80000000 45 46 #endif /* _WIN32_WINNT >= 0x0501 */ 47 48 #endif /* _REASON_H */ 49