Define PPEB in ntddk.h
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 29 Mar 2010 11:40:06 +0000 (11:40 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 29 Mar 2010 11:40:06 +0000 (11:40 +0000)
svn path=/trunk/; revision=46568

reactos/include/ddk/ntddk.h
reactos/include/ndk/peb_teb.h

index 4e27091..62c1f78 100644 (file)
@@ -70,6 +70,8 @@ typedef GUID UUID;
 
 typedef struct _BUS_HANDLER *PBUS_HANDLER;
 
+typedef struct _PEB *PPEB;
+
 #define EXCEPTION_READ_FAULT    0
 #define EXCEPTION_WRITE_FAULT   1
 #define EXCEPTION_EXECUTE_FAULT 8
index 38791b3..ec4b2d3 100644 (file)
@@ -1,4 +1,3 @@
-
 #define PASTE2(x,y)       x##y
 #define PASTE(x,y)         PASTE2(x,y)
 
   #define GDI_HANDLE_BUFFER_SIZE 34
 #endif
 
+#if defined(_NTDDK_INCLUDED_) || defined(_NTIFS_)
+#define PPEB PPEB_RENAMED
+#endif
+
 typedef struct STRUCT(_PEB)
 {
     BOOLEAN InheritedAddressSpace;
@@ -152,6 +155,7 @@ typedef struct STRUCT(_PEB)
 #endif
 } STRUCT(PEB), *STRUCT(PPEB);
 
+#undef PPEB
 
 #if defined(_WIN64) && !defined(EXPLICIT_32BIT)
 C_ASSERT(FIELD_OFFSET(STRUCT(PEB), Mutant) == 0x08);