André Hentschel : winedump: Add more subsystem descriptions.
Alexandre Julliard
julliard at winehq.org
Mon Sep 20 12:12:24 CDT 2010
Module: wine
Branch: master
Commit: 7b1e33152353149bfd2b2d9bc1c81aa45bd50e4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b1e33152353149bfd2b2d9bc1c81aa45bd50e4f
Author: André Hentschel <nerv at dawncrow.de>
Date: Sun Sep 19 23:22:39 2010 +0200
winedump: Add more subsystem descriptions.
---
include/winnt.h | 1 +
tools/winedump/pe.c | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/winnt.h b/include/winnt.h
index fce9952..8c17159 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -2773,6 +2773,7 @@ typedef struct _IMAGE_VXD_HEADER {
#define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER 12
#define IMAGE_SUBSYSTEM_EFI_ROM 13
#define IMAGE_SUBSYSTEM_XBOX 14
+#define IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION 16
/* DLL Characteristics */
#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040
diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c
index 48578d6..a2b1fe5 100644
--- a/tools/winedump/pe.c
+++ b/tools/winedump/pe.c
@@ -193,6 +193,14 @@ static inline void print_subsys(const char *title, WORD value)
case IMAGE_SUBSYSTEM_WINDOWS_CUI: str = "Windows CUI"; break;
case IMAGE_SUBSYSTEM_OS2_CUI: str = "OS/2 CUI"; break;
case IMAGE_SUBSYSTEM_POSIX_CUI: str = "Posix CUI"; break;
+ case IMAGE_SUBSYSTEM_NATIVE_WINDOWS: str = "native Win9x driver"; break;
+ case IMAGE_SUBSYSTEM_WINDOWS_CE_GUI: str = "Windows CE GUI"; break;
+ case IMAGE_SUBSYSTEM_EFI_APPLICATION: str = "EFI application"; break;
+ case IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER: str = "EFI driver (boot)"; break;
+ case IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER: str = "EFI driver (runtime)"; break;
+ case IMAGE_SUBSYSTEM_EFI_ROM: str = "EFI ROM"; break;
+ case IMAGE_SUBSYSTEM_XBOX: str = "Xbox application"; break;
+ case IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION: str = "Boot application"; break;
}
printf(" %-34s 0x%X (%s)\n", title, value, str);
}
More information about the wine-cvs
mailing list