forget update de.rc
[reactos.git] / reactos / ntoskrnl / lpc / listen.c
index 4010837..901c816 100644 (file)
@@ -1,21 +1,16 @@
-/* $Id: listen.c,v 1.7 2003/07/11 01:23:15 royce Exp $
- * 
+/* $Id$
+ *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
  * FILE:            ntoskrnl/lpc/listen.c
  * PURPOSE:         Communication mechanism
- * PROGRAMMER:      David Welch (welch@cwcom.net)
- * UPDATE HISTORY:
- *                  Created 22/05/98
+ *
+ * PROGRAMMERS:     David Welch (welch@cwcom.net)
  */
 
 /* INCLUDES ******************************************************************/
 
-#include <ddk/ntddk.h>
-#include <internal/ob.h>
-#include <internal/port.h>
-#include <internal/dbg.h>
-
+#include <ntoskrnl.h>
 #define NDEBUG
 #include <internal/debug.h>
 
  *
  * NOTE
  */
-EXPORTED NTSTATUS STDCALL
+/*EXPORTED*/ NTSTATUS STDCALL
 NtListenPort (IN       HANDLE          PortHandle,
-             IN        PLPC_MESSAGE    ConnectMsg)
+             IN        PPORT_MESSAGE   ConnectMsg)
 {
   NTSTATUS     Status;
-  
+
   /*
    * Wait forever for a connection request.
    */
@@ -62,15 +57,15 @@ NtListenPort (IN    HANDLE          PortHandle,
        * Accept only LPC_CONNECTION_REQUEST requests.
        * Drop any other message.
        */
-      if (!NT_SUCCESS(Status) || 
-         LPC_CONNECTION_REQUEST == ConnectMsg->MessageType)
+      if (!NT_SUCCESS(Status) ||
+         LPC_CONNECTION_REQUEST == ConnectMsg->u2.s2.Type)
        {
          DPRINT("Got message (type %x)\n", LPC_CONNECTION_REQUEST);
          break;
        }
-      DPRINT("Got message (type %x)\n", ConnectMsg->MessageType);
+      DPRINT("Got message (type %x)\n", ConnectMsg->u2.s2.Type);
     }
-  
+
   return (Status);
 }