winedump: Add more subsystem descriptions
André Hentschel
nerv at dawncrow.de
Sun Sep 19 16:22:39 CDT 2010
---
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);
}
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list