2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/lpc/listen.c
5 * PURPOSE: Local Procedure Call: Listening
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
9 /* INCLUDES ******************************************************************/
14 #include <internal/debug.h>
16 /* PUBLIC FUNCTIONS **********************************************************/
23 NtListenPort(IN HANDLE PortHandle
,
24 OUT PPORT_MESSAGE ConnectMessage
)
28 LPCTRACE(LPC_LISTEN_DEBUG
, "Handle: %lx\n", PortHandle
);
30 /* Wait forever for a connection request. */
34 Status
= NtReplyWaitReceivePort(PortHandle
,
39 /* Accept only LPC_CONNECTION_REQUEST requests. */
40 if ((Status
!= STATUS_SUCCESS
) ||
41 (LpcpGetMessageType(ConnectMessage
) == LPC_CONNECTION_REQUEST
))