- NTLPC always 1 now, remove deprecated code

- Unlock SMSS: authors are clearly known, history of smss goes to the beginnings of the project. Code needs cleaning up (headers, formatting).

svn path=/trunk/; revision=28941
This commit is contained in:
Aleksey Bragin 2007-09-08 12:02:52 +00:00
parent 912e0b2f35
commit 9b8e768a59

View file

@ -249,21 +249,14 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
}
}
DPRINT("SM: %s: before NtAcceptConnectPort\n", __FUNCTION__);
#if defined(NTLPC)
Status = NtAcceptConnectPort (ClientDataApiPort,
Context,
(PPORT_MESSAGE) Request,
Accept,
NULL,
NULL);
#else /* ReactOS LPC */
Status = NtAcceptConnectPort (ClientDataApiPort,
SmApiPort, // ROS LPC requires the listen port here
Context,
Accept,
NULL,
NULL);
#endif
if(Accept)
{
if(!NT_SUCCESS(Status))
@ -280,25 +273,6 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
__FUNCTION__, Status);
return Status;
}
#if !defined(NTLPC) /* ReactOS LPC */
DPRINT("SM: %s: server side comm port thread (ROS LPC)\n", __FUNCTION__);
Status = RtlCreateUserThread(NtCurrentProcess(),
NULL,
FALSE,
0,
0,
0,
(PTHREAD_START_ROUTINE) SmpApiConnectedThread,
ClientDataApiPort,
ClientDataApiPortThread,
NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("SM: %s: Unable to create server thread (Status=0x%08lx)\n",
__FUNCTION__, Status);
return Status;
}
#endif
}
Status = STATUS_SUCCESS;
}
@ -390,17 +364,11 @@ SmCreateApiPort(VOID)
0,
0,
0,
#ifdef NTLPC
(PTHREAD_START_ROUTINE)SmpApiConnectedThread,
&SmApiPort,
#else
(PTHREAD_START_ROUTINE)SmpApiThread,
(PVOID)SmApiPort,
#endif
(PTHREAD_START_ROUTINE)SmpApiConnectedThread,
&SmApiPort,
NULL,
NULL);
#ifdef NTLPC
//
// On NT LPC, we need a second thread to handle incoming connections
// generated by incoming requests, otherwise the thread handling
@ -417,7 +385,6 @@ SmCreateApiPort(VOID)
&SmApiPort,
NULL,
NULL);
#endif
return(Status);
}