aboutsummaryrefslogtreecommitdiff
path: root/win32/include/winapi/reason.h
diff options
context:
space:
mode:
authorgrischka <grischka>2009-07-18 22:06:37 +0200
committergrischka <grischka>2009-07-18 22:06:37 +0200
commitdc251a7d8d8bb4fb57773790152bfe85236f5f12 (patch)
treee8dcec8579afbe341a4af7560f0a7e559238f503 /win32/include/winapi/reason.h
parent06aed3d171839454648cebd0c58eaf4667e4979a (diff)
downloadtinycc-dc251a7d8d8bb4fb57773790152bfe85236f5f12.tar.gz
tinycc-dc251a7d8d8bb4fb57773790152bfe85236f5f12.tar.bz2
win64: use new headers from mingw
Diffstat (limited to 'win32/include/winapi/reason.h')
-rw-r--r--win32/include/winapi/reason.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/win32/include/winapi/reason.h b/win32/include/winapi/reason.h
new file mode 100644
index 0000000..4d923e2
--- /dev/null
+++ b/win32/include/winapi/reason.h
@@ -0,0 +1,80 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the w64 mingw-runtime package.
+ * No warranty is given; refer to the file DISCLAIMER within this package.
+ */
+#if !defined SENTINEL_Reason
+#define SENTINEL_Reason
+
+#define SHTDN_REASON_FLAG_COMMENT_REQUIRED 0x01000000
+#define SHTDN_REASON_FLAG_DIRTY_PROBLEM_ID_REQUIRED 0x02000000
+#define SHTDN_REASON_FLAG_CLEAN_UI 0x04000000
+#define SHTDN_REASON_FLAG_DIRTY_UI 0x08000000
+#define SHTDN_REASON_FLAG_USER_DEFINED 0x40000000
+#define SHTDN_REASON_FLAG_PLANNED 0x80000000
+#define SHTDN_REASON_MAJOR_OTHER 0x00000000
+#define SHTDN_REASON_MAJOR_NONE 0x00000000
+#define SHTDN_REASON_MAJOR_HARDWARE 0x00010000
+#define SHTDN_REASON_MAJOR_OPERATINGSYSTEM 0x00020000
+#define SHTDN_REASON_MAJOR_SOFTWARE 0x00030000
+#define SHTDN_REASON_MAJOR_APPLICATION 0x00040000
+#define SHTDN_REASON_MAJOR_SYSTEM 0x00050000
+#define SHTDN_REASON_MAJOR_POWER 0x00060000
+#define SHTDN_REASON_MAJOR_LEGACY_API 0x00070000
+#define SHTDN_REASON_MINOR_OTHER 0x00000000
+#define SHTDN_REASON_MINOR_NONE 0x000000ff
+#define SHTDN_REASON_MINOR_MAINTENANCE 0x00000001
+#define SHTDN_REASON_MINOR_INSTALLATION 0x00000002
+#define SHTDN_REASON_MINOR_UPGRADE 0x00000003
+#define SHTDN_REASON_MINOR_RECONFIG 0x00000004
+#define SHTDN_REASON_MINOR_HUNG 0x00000005
+#define SHTDN_REASON_MINOR_UNSTABLE 0x00000006
+#define SHTDN_REASON_MINOR_DISK 0x00000007
+#define SHTDN_REASON_MINOR_PROCESSOR 0x00000008
+#define SHTDN_REASON_MINOR_NETWORKCARD 0x00000009
+#define SHTDN_REASON_MINOR_POWER_SUPPLY 0x0000000a
+#define SHTDN_REASON_MINOR_CORDUNPLUGGED 0x0000000b
+#define SHTDN_REASON_MINOR_ENVIRONMENT 0x0000000c
+#define SHTDN_REASON_MINOR_HARDWARE_DRIVER 0x0000000d
+#define SHTDN_REASON_MINOR_OTHERDRIVER 0x0000000e
+#define SHTDN_REASON_MINOR_BLUESCREEN 0x0000000F
+#define SHTDN_REASON_MINOR_SERVICEPACK 0x00000010
+#define SHTDN_REASON_MINOR_HOTFIX 0x00000011
+#define SHTDN_REASON_MINOR_SECURITYFIX 0x00000012
+#define SHTDN_REASON_MINOR_SECURITY 0x00000013
+#define SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY 0x00000014
+#define SHTDN_REASON_MINOR_WMI 0x00000015
+#define SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL 0x00000016
+#define SHTDN_REASON_MINOR_HOTFIX_UNINSTALL 0x00000017
+#define SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL 0x00000018
+#define SHTDN_REASON_MINOR_MMC 0x00000019
+#define SHTDN_REASON_MINOR_SYSTEMRESTORE 0x0000001a
+#define SHTDN_REASON_MINOR_TERMSRV 0x00000020
+#define SHTDN_REASON_MINOR_DC_PROMOTION 0x00000021
+#define SHTDN_REASON_MINOR_DC_DEMOTION 0x00000022
+#define SHTDN_REASON_UNKNOWN SHTDN_REASON_MINOR_NONE
+#define SHTDN_REASON_LEGACY_API (SHTDN_REASON_MAJOR_LEGACY_API | SHTDN_REASON_FLAG_PLANNED)
+#define SHTDN_REASON_VALID_BIT_MASK 0xc0ffffff
+
+#define PCLEANUI (SHTDN_REASON_FLAG_PLANNED | SHTDN_REASON_FLAG_CLEAN_UI)
+#define UCLEANUI (SHTDN_REASON_FLAG_CLEAN_UI)
+#define PDIRTYUI (SHTDN_REASON_FLAG_PLANNED | SHTDN_REASON_FLAG_DIRTY_UI)
+#define UDIRTYUI (SHTDN_REASON_FLAG_DIRTY_UI)
+
+#define MAX_REASON_NAME_LEN 64
+#define MAX_REASON_DESC_LEN 256
+#define MAX_REASON_BUGID_LEN 32
+#define MAX_REASON_COMMENT_LEN 512
+#define SHUTDOWN_TYPE_LEN 32
+
+#define POLICY_SHOWREASONUI_NEVER 0
+#define POLICY_SHOWREASONUI_ALWAYS 1
+#define POLICY_SHOWREASONUI_WORKSTATIONONLY 2
+#define POLICY_SHOWREASONUI_SERVERONLY 3
+
+#define SNAPSHOT_POLICY_NEVER 0
+#define SNAPSHOT_POLICY_ALWAYS 1
+#define SNAPSHOT_POLICY_UNPLANNED 2
+
+#define MAX_NUM_REASONS 256
+#endif