- Merge aicom-network-fixes up to r36740
[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 software is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This software 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 GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this software; see the file COPYING.LIB. If not, write
21 * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
22 * MA 02139, USA.
23 *
24 * --------------------------------------------------------------------
25 */
26
27 #include <csrss.h>
28
29 #define NDEBUG
30 #include <debug.h>
31
32 int _cdecl _main(int argc,
33 char *argv[],
34 char *envp[],
35 int DebugFlag)
36 {
37 NTSTATUS Status = STATUS_SUCCESS;
38
39 //PrintString("ReactOS Client/Server Run-Time (Build %s)\n",
40 //KERNEL_VERSION_BUILD_STR);
41
42 /*==================================================================
43 * Initialize the Win32 environment subsystem server.
44 *================================================================*/
45 if (CsrServerInitialization (argc, argv, envp) == TRUE)
46 {
47 /*
48 * Terminate the current thread only.
49 */
50 Status = NtTerminateThread (NtCurrentThread(), 0);
51 }
52 else
53 {
54 DisplayString (L"CSR: CsrServerInitialization failed.\n");
55 /*
56 * Tell the SM we failed.
57 */
58 Status = NtTerminateProcess (NtCurrentProcess(), 0);
59 }
60 return (int) Status;
61 }
62
63 /* EOF */