- Implement EnumServicesStatusW.
[reactos.git] / reactos / services / rpcss / rpcss.c
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2002 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 /* $Id$
20 *
21 * COPYRIGHT: See COPYING in the top level directory
22 * PROJECT: ReactOS kernel
23 * FILE: services/rpcss/rpcss.c
24 * PURPOSE: RPC server
25 * PROGRAMMER: Eric Kohl
26 */
27
28 /* INCLUDES *****************************************************************/
29
30 #include "rpcss.h"
31
32 #define NDEBUG
33 #include <debug.h>
34
35
36
37 /* GLOBALS ******************************************************************/
38
39
40
41 /* FUNCTIONS *****************************************************************/
42
43 void
44 PrintString(char* fmt,...)
45 {
46 char buffer[512];
47 va_list ap;
48
49 va_start(ap, fmt);
50 vsprintf(buffer, fmt, ap);
51 va_end(ap);
52
53 OutputDebugStringA(buffer);
54 }
55
56
57
58 VOID CALLBACK
59 ServiceMain(DWORD argc, LPTSTR *argv)
60 {
61
62 PrintString("ServiceMain() called\n");
63
64
65 StartEndpointMapper();
66
67
68 PrintString("ServiceMain() done\n");
69
70 }
71
72
73 int main(int argc, char *argv[])
74 {
75 #if 0
76 SERVICE_TABLE_ENTRY ServiceTable[] = {{"RpcSs", ServiceMain},{NULL, NULL}};
77 #endif
78
79 HANDLE hEvent;
80
81 PrintString("RpcSs service\n");
82
83
84
85
86 #if 0
87 StartServiceCtrlDispatcher(ServiceTable);
88 #endif
89
90
91 ServiceMain(0, NULL);
92
93
94 hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
95 WaitForSingleObject(hEvent, INFINITE);
96
97 PrintString("EventLog: done\n");
98
99 ExitThread(0);
100 return(0);
101 }
102
103 /* EOF */