Author: ion
Date: Tue Jan 5 17:12:14 2016
New Revision: 70494
URL:
http://svn.reactos.org/svn/reactos?rev=70494&view=rev
Log:
[DDK]: Add IMAGE_RESOURCE_DIRECTORY_ENTRY to NTIMAGE.H. I shudder to think how our current
code currently parses resource directories without this.
Modified:
trunk/reactos/include/ddk/ntimage.h
Modified: trunk/reactos/include/ddk/ntimage.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ntimage.h?rev=…
==============================================================================
--- trunk/reactos/include/ddk/ntimage.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ntimage.h [iso-8859-1] Tue Jan 5 17:12:14 2016
@@ -175,6 +175,27 @@
USHORT NumberOfNamedEntries;
USHORT NumberOfIdEntries;
} IMAGE_RESOURCE_DIRECTORY, *PIMAGE_RESOURCE_DIRECTORY;
+
+#define IMAGE_RESOURCE_NAME_IS_STRING 0x80000000
+#define IMAGE_RESOURCE_DATA_IS_DIRECTORY 0x80000000
+
+typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY {
+ _ANONYMOUS_UNION union {
+ _ANONYMOUS_STRUCT struct {
+ ULONG NameOffset:31;
+ ULONG NameIsString:1;
+ } DUMMYSTRUCTNAME;
+ ULONG Name;
+ USHORT Id;
+ } DUMMYUNIONNAME;
+ _ANONYMOUS_UNION union {
+ ULONG OffsetToData;
+ _ANONYMOUS_STRUCT struct {
+ ULONG OffsetToDirectory:31;
+ ULONG DataIsDirectory:1;
+ } DUMMYSTRUCTNAME2;
+ } DUMMYUNIONNAME2;
+} IMAGE_RESOURCE_DIRECTORY_ENTRY, *PIMAGE_RESOURCE_DIRECTORY_ENTRY;
typedef struct _IMAGE_RESOURCE_DIRECTORY_STRING {
USHORT Length;