mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
- 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:
parent
912e0b2f35
commit
9b8e768a59
1 changed files with 4 additions and 37 deletions
|
@ -249,21 +249,14 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DPRINT("SM: %s: before NtAcceptConnectPort\n", __FUNCTION__);
|
DPRINT("SM: %s: before NtAcceptConnectPort\n", __FUNCTION__);
|
||||||
#if defined(NTLPC)
|
|
||||||
Status = NtAcceptConnectPort (ClientDataApiPort,
|
Status = NtAcceptConnectPort (ClientDataApiPort,
|
||||||
Context,
|
Context,
|
||||||
(PPORT_MESSAGE) Request,
|
(PPORT_MESSAGE) Request,
|
||||||
Accept,
|
Accept,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
#else /* ReactOS LPC */
|
|
||||||
Status = NtAcceptConnectPort (ClientDataApiPort,
|
|
||||||
SmApiPort, // ROS LPC requires the listen port here
|
|
||||||
Context,
|
|
||||||
Accept,
|
|
||||||
NULL,
|
|
||||||
NULL);
|
|
||||||
#endif
|
|
||||||
if(Accept)
|
if(Accept)
|
||||||
{
|
{
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
|
@ -280,25 +273,6 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
|
||||||
__FUNCTION__, Status);
|
__FUNCTION__, Status);
|
||||||
return 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;
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -390,17 +364,11 @@ SmCreateApiPort(VOID)
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
#ifdef NTLPC
|
(PTHREAD_START_ROUTINE)SmpApiConnectedThread,
|
||||||
(PTHREAD_START_ROUTINE)SmpApiConnectedThread,
|
&SmApiPort,
|
||||||
&SmApiPort,
|
|
||||||
#else
|
|
||||||
(PTHREAD_START_ROUTINE)SmpApiThread,
|
|
||||||
(PVOID)SmApiPort,
|
|
||||||
#endif
|
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
#ifdef NTLPC
|
|
||||||
//
|
//
|
||||||
// On NT LPC, we need a second thread to handle incoming connections
|
// On NT LPC, we need a second thread to handle incoming connections
|
||||||
// generated by incoming requests, otherwise the thread handling
|
// generated by incoming requests, otherwise the thread handling
|
||||||
|
@ -417,7 +385,6 @@ SmCreateApiPort(VOID)
|
||||||
&SmApiPort,
|
&SmApiPort,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
#endif
|
|
||||||
|
|
||||||
return(Status);
|
return(Status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue