07027c75f173665c76195c213ffa6f8a4bf4b151
[reactos.git] / reactos / subsystems / win32 / csrss / csrss.c
1 /* $Id$
2 *
3 * csrss.c - Client/Server Runtime subsystem
4 *
5 * ReactOS Operating System
6 *
7 * --------------------------------------------------------------------
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 *
23 * --------------------------------------------------------------------
24 */
25
26 #include <csrss.h>
27
28 #define NDEBUG
29 #include <debug.h>
30
31 int _cdecl _main(int argc,
32 char *argv[],
33 char *envp[],
34 int DebugFlag)
35 {
36 NTSTATUS Status = STATUS_SUCCESS;
37
38 //PrintString("ReactOS Client/Server Run-Time (Build %s)\n",
39 //KERNEL_VERSION_BUILD_STR);
40
41 /*==================================================================
42 * Initialize the Win32 environment subsystem server.
43 *================================================================*/
44 if (CsrServerInitialization (argc, argv, envp) == TRUE)
45 {
46 /*
47 * Terminate the current thread only.
48 */
49 Status = NtTerminateThread (NtCurrentThread(), 0);
50 }
51 else
52 {
53 DisplayString (L"CSR: CsrServerInitialization failed.\n");
54 /*
55 * Tell the SM we failed.
56 */
57 Status = NtTerminateProcess (NtCurrentProcess(), 0);
58 }
59 return (int) Status;
60 }
61
62 /* EOF */