Copy riched20
[reactos.git] / posix / server / port / sbapi.c
1 /* $Id: sbapi.c,v 1.4 2003/12/21 20:11:46 ea Exp $
2 *
3 * PROJECT : ReactOS / POSIX+ Environment Subsystem Server
4 * FILE : reactos/subsys/psx/server/port/sbapi.c
5 * DESCRIPTION: \POSIX+\SbApiPort LPC logic.
6 * DATE : 2001-03-23
7 * AUTHOR : Emanuele Aliberti <eal@users.sf.net>
8 *
9 * --------------------------------------------------------------------
10 *
11 * This software is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This software is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this software; see the file COPYING. If not, write
23 * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
24 * MA 02139, USA.
25 *
26 * --------------------------------------------------------------------
27 */
28 #include <psxss.h>
29 #include "utils.h"
30
31
32 /**********************************************************************
33 * ProcessConnectionRequest/ PRIVATE
34 */
35 PRIVATE NTSTATUS STDCALL
36 ProcessConnectionRequest (PPSX_MESSAGE pRequest)
37 {
38 return STATUS_NOT_IMPLEMENTED;
39 }
40 /**********************************************************************
41 * ProcessRequest/ PRIVATE
42 */
43 PRIVATE NTSTATUS STDCALL
44 ProcessRequest (PPSX_MESSAGE pRequest)
45 {
46 return STATUS_NOT_IMPLEMENTED;
47 }
48 /**********************************************************************
49 * SbApiPortListener/1
50 *
51 * DESCRIPTION
52 * The \POSIX+\SbApiPort LPC port message dispatcher.
53 *
54 * NOTE
55 * what is this port for? Is "Sb" for "shared block"?
56 */
57 VOID STDCALL
58 SbApiPortListener (PVOID pArg)
59 {
60 NTSTATUS Status;
61 ULONG PortIdentifier;
62 PSX_MAX_MESSAGE Request;
63 PPSX_MAX_MESSAGE Reply = NULL;
64
65 debug_print (L"PSXSS: ->%s pArg=%d", TEXT(__FUNCTION__), (ULONG) pArg);
66
67 RtlZeroMemory (& Request, sizeof Request);
68 /* TODO */
69 #ifdef __PSXSS_ON_W32__
70 Sleep(30000);
71 TerminateThread(GetCurrentThread(),Status);
72 #else
73 NtTerminateThread(NtCurrentThread(),Status);
74 #endif
75 }
76 /* EOF */