-/* $Id: listen.c,v 1.6 2003/07/10 20:42:53 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>
* request message queued by NtConnectPort() in PortHandle.
*
* NOTE
- *
- * @implemented
*/
-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.
*/
* 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);
}