(VOID)CallHardError(ProcessData, Message);
}
-NTSTATUS STDCALL
+NTSTATUS WINAPI
CsrpHandleConnectionRequest (PPORT_MESSAGE Request,
IN HANDLE hApiListenPort)
{
}
VOID
-STDCALL
+WINAPI
ClientConnectionThread(HANDLE ServerPort)
{
NTSTATUS Status;
}
if (ProcessData->Terminated)
{
- DPRINT1("Message %d: process %d already terminated\n",
- Request->Type, (ULONG)Request->Header.ClientId.UniqueProcess);
+ DPRINT1("Message %d: process %p already terminated\n",
+ Request->Type, Request->Header.ClientId.UniqueProcess);
continue;
}
RtlExitUserThread(STATUS_SUCCESS);
}
-/**********************************************************************
- * NAME
- * ServerApiPortThread/1
- *
- * DESCRIPTION
- * Handle connection requests from clients to the port
- * "\Windows\ApiPort".
- */
-#if 0
-DWORD STDCALL
-ServerApiPortThread (HANDLE hApiListenPort)
-{
- NTSTATUS Status = STATUS_SUCCESS;
- BYTE RawRequest[sizeof(PORT_MESSAGE) + sizeof(CSR_CONNECTION_INFO)];
- PPORT_MESSAGE Request = (PPORT_MESSAGE)RawRequest;
-
- DPRINT("CSR: %s called", __FUNCTION__);
-
- for (;;)
- {
- REMOTE_PORT_VIEW LpcRead;
- LpcRead.Length = sizeof(LpcRead);
-
- Status = NtListenPort (hApiListenPort, Request);
- if (!NT_SUCCESS(Status))
- {
- DPRINT1("CSR: NtListenPort() failed, status=%x\n", Status);
- break;
- }
-
- Status = CsrpHandleConnectionRequest(Request, hApiListenPort);
- if(!NT_SUCCESS(Status))
- {
- DPRINT1("CSR: %s: SmpHandleConnectionRequest failed (Status=0x%08lx)\n",
- __FUNCTION__, Status);
- break;
- }
- }
-
- NtClose(hApiListenPort);
- NtTerminateThread(NtCurrentThread(), Status);
- return 0;
-}
-#endif
-
/**********************************************************************
* NAME
* ServerSbApiPortThread/1
* "\Windows\SbApiPort". We will accept only one
* connection request (from the SM).
*/
-DWORD STDCALL
+DWORD WINAPI
ServerSbApiPortThread (HANDLE hSbApiPortListen)
{
HANDLE hConnectedPort = (HANDLE) 0;