[NDK]
[reactos.git] / reactos / include / ndk / lpctypes.h
index 4441961..b550ab1 100644 (file)
@@ -25,6 +25,15 @@ Author:
 #include <umtypes.h>
 //#include <pstypes.h>
 
+#ifndef NTOS_MODE_USER
+
+//
+// Kernel Exported Object Types
+//
+extern POBJECT_TYPE NTSYSAPI LpcPortObjectType;
+
+#endif // !NTOS_MODE_USER
+
 //
 // Internal helper macro
 //
@@ -209,8 +218,11 @@ typedef struct _LPCP_PORT_OBJECT
     SECURITY_CLIENT_CONTEXT StaticSecurity;
     LIST_ENTRY LpcReplyChainHead;
     LIST_ENTRY LpcDataInfoChainHead;
-    PEPROCESS ServerProcess;
-    PEPROCESS MappingProcess;
+    union
+    {
+        PEPROCESS ServerProcess;
+        PEPROCESS MappingProcess;
+    };
     ULONG MaxMessageLength;
     ULONG MaxConnectionInfoLength;
     ULONG Flags;