From f4613fcd1ddbff0999c770cf9006ac285db2495b Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Date: Thu, 8 Sep 2005 13:55:46 +0000 Subject: [PATCH] * include/reason.h [_WIN32_WINNT >= 0x0501] (SHTDN_REASON_*): New file. * include/objbase.h: Avoid double header guard. --- winsup/w32api/ChangeLog | 6 +++++ winsup/w32api/include/objbase.h | 1 - winsup/w32api/include/reason.h | 47 +++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 winsup/w32api/include/reason.h diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 19f64414f..48e7d3f90 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,9 @@ +2005-09-08 Dimitri Papadopoulos + + * include/reason.h [_WIN32_WINNT >= 0x0501] + (SHTDN_REASON_*): New file. + * include/objbase.h: Avoid double header guard. + 2005-08-17 Michael Jung * lib/shell32.c (CLSID_RecycleBin, CLSID_ControlPanel, diff --git a/winsup/w32api/include/objbase.h b/winsup/w32api/include/objbase.h index e4f8ad607..5e101b65c 100644 --- a/winsup/w32api/include/objbase.h +++ b/winsup/w32api/include/objbase.h @@ -4,7 +4,6 @@ #include #ifndef _OBJBASE_H -#define _OBJBASE_H #define _OBJBASE_H_ #if __GNUC__ >=3 #pragma GCC system_header diff --git a/winsup/w32api/include/reason.h b/winsup/w32api/include/reason.h new file mode 100644 index 000000000..fb73451a3 --- /dev/null +++ b/winsup/w32api/include/reason.h @@ -0,0 +1,47 @@ +#ifndef _REASON_H +#define _REASON_H +#if __GNUC__ >=3 +#pragma GCC system_header +#endif + +#if (_WIN32_WINNT >= 0x0501) +#define SHTDN_REASON_MAJOR_APPLICATION 0x00040000 +#define SHTDN_REASON_MAJOR_HARDWARE 0x00010000 +#define SHTDN_REASON_MAJOR_LEGACY_API 0x00070000 +#define SHTDN_REASON_MAJOR_OPERATINGSYSTEM 0x00020000 +#define SHTDN_REASON_MAJOR_OTHER 0x00000000 +#define SHTDN_REASON_MAJOR_POWER 0x00060000 +#define SHTDN_REASON_MAJOR_SOFTWARE 0x00030000 +#define SHTDN_REASON_MAJOR_SYSTEM 0x00050000 +#define SHTDN_REASON_MINOR_BLUESCREEN 0x0000000F +#define SHTDN_REASON_MINOR_CORDUNPLUGGED 0x0000000b +#define SHTDN_REASON_MINOR_DISK 0x00000007 +#define SHTDN_REASON_MINOR_ENVIRONMENT 0x0000000c +#define SHTDN_REASON_MINOR_HARDWARE_DRIVER 0x0000000d +#define SHTDN_REASON_MINOR_HOTFIX 0x00000011 +#define SHTDN_REASON_MINOR_HOTFIX_UNINSTALL 0x00000017 +#define SHTDN_REASON_MINOR_HUNG 0x00000005 +#define SHTDN_REASON_MINOR_INSTALLATION 0x00000002 +#define SHTDN_REASON_MINOR_MAINTENANCE 0x00000001 +#define SHTDN_REASON_MINOR_MMC 0x00000019 +#define SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY 0x00000014 +#define SHTDN_REASON_MINOR_NETWORKCARD 0x00000009 +#define SHTDN_REASON_MINOR_OTHER 0x00000000 +#define SHTDN_REASON_MINOR_OTHERDRIVER 0x0000000e +#define SHTDN_REASON_MINOR_POWER_SUPPLY 0x0000000a +#define SHTDN_REASON_MINOR_PROCESSOR 0x00000008 +#define SHTDN_REASON_MINOR_RECONFIG 0x00000004 +#define SHTDN_REASON_MINOR_SECURITY 0x00000013 +#define SHTDN_REASON_MINOR_SECURITYFIX 0x00000012 +#define SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL 0x00000018 +#define SHTDN_REASON_MINOR_SERVICEPACK 0x00000010 +#define SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL 0x00000016 +#define SHTDN_REASON_MINOR_TERMSRV 0x00000020 +#define SHTDN_REASON_MINOR_UNSTABLE 0x00000006 +#define SHTDN_REASON_MINOR_UPGRADE 0x00000003 +#define SHTDN_REASON_MINOR_WMI 0x00000015 +#define SHTDN_REASON_FLAG_USER_DEFINED 0x40000000 +#define SHTDN_REASON_FLAG_PLANNED 0x80000000 +#endif /* (WIN32_WINNT >= 0x0501) */ + +#endif -- 2.43.5