2005-01-06 13:58:04 +00:00
|
|
|
/* $Id$
|
1999-06-08 22:50:59 +00:00
|
|
|
*
|
|
|
|
* csrss.c - Client/Server Runtime subsystem
|
2005-05-08 04:07:56 +00:00
|
|
|
*
|
1999-06-08 22:50:59 +00:00
|
|
|
* ReactOS Operating System
|
2005-05-08 04:07:56 +00:00
|
|
|
*
|
1999-06-08 22:50:59 +00:00
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
1999-06-08 22:50:59 +00:00
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
1999-06-08 22:50:59 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2009-10-27 10:34:16 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
1999-06-08 22:50:59 +00:00
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
1999-06-08 22:50:59 +00:00
|
|
|
*
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
*/
|
2005-06-20 11:56:10 +00:00
|
|
|
|
2005-07-26 08:55:25 +00:00
|
|
|
#include <csrss.h>
|
2000-03-22 18:36:00 +00:00
|
|
|
|
2005-02-26 15:06:19 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
1999-06-08 22:50:59 +00:00
|
|
|
|
2005-10-08 22:41:49 +00:00
|
|
|
int _cdecl _main(int argc,
|
|
|
|
char *argv[],
|
|
|
|
char *envp[],
|
|
|
|
int DebugFlag)
|
2005-02-26 15:06:19 +00:00
|
|
|
{
|
2005-10-08 22:41:49 +00:00
|
|
|
NTSTATUS Status = STATUS_SUCCESS;
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2007-01-25 17:51:45 +00:00
|
|
|
//PrintString("ReactOS Client/Server Run-Time (Build %s)\n",
|
|
|
|
//KERNEL_VERSION_BUILD_STR);
|
2005-02-26 15:06:19 +00:00
|
|
|
|
|
|
|
/*==================================================================
|
|
|
|
* Initialize the Win32 environment subsystem server.
|
|
|
|
*================================================================*/
|
2005-10-08 22:41:49 +00:00
|
|
|
if (CsrServerInitialization (argc, argv, envp) == TRUE)
|
2000-02-27 02:12:07 +00:00
|
|
|
{
|
2005-02-26 15:06:19 +00:00
|
|
|
/*
|
|
|
|
* Terminate the current thread only.
|
|
|
|
*/
|
2005-10-08 22:41:49 +00:00
|
|
|
Status = NtTerminateThread (NtCurrentThread(), 0);
|
2000-02-27 02:12:07 +00:00
|
|
|
}
|
1999-12-22 14:48:30 +00:00
|
|
|
else
|
|
|
|
{
|
2005-02-26 15:06:19 +00:00
|
|
|
DisplayString (L"CSR: CsrServerInitialization failed.\n");
|
1999-12-22 14:48:30 +00:00
|
|
|
/*
|
2005-02-26 15:06:19 +00:00
|
|
|
* Tell the SM we failed.
|
1999-12-22 14:48:30 +00:00
|
|
|
*/
|
2005-10-08 22:41:49 +00:00
|
|
|
Status = NtTerminateProcess (NtCurrentProcess(), 0);
|
1999-12-22 14:48:30 +00:00
|
|
|
}
|
2005-10-08 22:41:49 +00:00
|
|
|
return (int) Status;
|
1999-06-08 22:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|