- Add correct calls to NtAcceptConnectPort if NTLPC is used. Now we freeze because CSRSS uses client/server views so I have to implement that.

svn path=/trunk/; revision=24674
This commit is contained in:
Alex Ionescu 2006-10-30 16:21:21 +00:00
parent 9eeadde533
commit 560282ce30
2 changed files with 18 additions and 5 deletions

View file

@ -217,7 +217,7 @@ ServerApiPortThread (PVOID PortHandle)
CsrInitProcessData(); CsrInitProcessData();
DPRINT("CSR: %s called", __FUNCTION__); DPRINT1("CSR: %s called", __FUNCTION__);
for (;;) for (;;)
{ {
@ -231,8 +231,13 @@ ServerApiPortThread (PVOID PortHandle)
break; break;
} }
Status = NtAcceptConnectPort(& ServerPort, Status = NtAcceptConnectPort(& ServerPort,
#ifdef NTLPC
NULL,
Request,
#else
hApiListenPort, hApiListenPort,
NULL, NULL,
#endif
TRUE, TRUE,
0, 0,
& LpcRead); & LpcRead);
@ -307,7 +312,7 @@ ServerSbApiPortThread (PVOID PortHandle)
NTSTATUS Status = STATUS_SUCCESS; NTSTATUS Status = STATUS_SUCCESS;
PPORT_MESSAGE Reply = NULL; PPORT_MESSAGE Reply = NULL;
DPRINT("CSR: %s called\n", __FUNCTION__); DPRINT1("CSR: %s called\n", __FUNCTION__);
RtlZeroMemory(&Request, sizeof(PORT_MESSAGE)); RtlZeroMemory(&Request, sizeof(PORT_MESSAGE));
Status = NtListenPort (hSbApiPortListen, & Request); Status = NtListenPort (hSbApiPortListen, & Request);
@ -318,8 +323,13 @@ ServerSbApiPortThread (PVOID PortHandle)
} else { } else {
DPRINT("-- 1\n"); DPRINT("-- 1\n");
Status = NtAcceptConnectPort (& hConnectedPort, Status = NtAcceptConnectPort (& hConnectedPort,
hSbApiPortListen, #ifdef NTLPC
NULL, NULL,
&Request,
#else
hSbApiPortListen,
NULL,
#endif
TRUE, TRUE,
NULL, NULL,
NULL); NULL);

View file

@ -6,6 +6,9 @@
<define name="__USE_W32API" /> <define name="__USE_W32API" />
<define name="_WIN32_WINNT">0x0600</define> <define name="_WIN32_WINNT">0x0600</define>
<define name="WINVER">0x0501</define> <define name="WINVER">0x0501</define>
<if property="NTLPC" value="1">
<define name="NTLPC" />
</if>
<library>nt</library> <library>nt</library>
<library>intrlck</library> <library>intrlck</library>
<library>ntdll</library> <library>ntdll</library>