2005-06-26 21:01:19 +00:00
|
|
|
/*
|
2005-02-17 12:45:13 +00:00
|
|
|
* reactos/subsys/system/lsass/lsass.c
|
2005-05-08 04:07:56 +00:00
|
|
|
*
|
1999-07-17 23:10:31 +00:00
|
|
|
* ReactOS Operating System
|
2005-05-08 04:07:56 +00:00
|
|
|
*
|
1999-07-17 23:10:31 +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-07-17 23:10:31 +00:00
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
1999-07-17 23:10:31 +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-07-17 23:10:31 +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-07-17 23:10:31 +00:00
|
|
|
*
|
|
|
|
* --------------------------------------------------------------------
|
2005-05-08 04:07:56 +00:00
|
|
|
*
|
1999-07-17 23:10:31 +00:00
|
|
|
* 19990704 (Emanuele Aliberti)
|
|
|
|
* Compiled successfully with egcs 1.1.2
|
|
|
|
*/
|
2005-10-19 17:03:38 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2005-06-26 21:01:19 +00:00
|
|
|
#define NTOS_MODE_USER
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2011-08-17 14:04:33 +00:00
|
|
|
#include <ndk/psfuncs.h>
|
2005-06-26 21:01:19 +00:00
|
|
|
|
2005-02-17 12:45:13 +00:00
|
|
|
#include <lsass/lsasrv.h>
|
2012-05-20 21:10:53 +00:00
|
|
|
#include <samsrv/samsrv.h>
|
1999-07-17 23:10:31 +00:00
|
|
|
|
2005-02-17 12:45:13 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
1999-07-17 23:10:31 +00:00
|
|
|
|
2006-10-09 19:16:47 +00:00
|
|
|
INT WINAPI
|
2010-01-31 21:00:45 +00:00
|
|
|
wWinMain(IN HINSTANCE hInstance,
|
|
|
|
IN HINSTANCE hPrevInstance,
|
|
|
|
IN LPWSTR lpCmdLine,
|
|
|
|
IN INT nShowCmd)
|
2006-10-09 19:16:47 +00:00
|
|
|
{
|
2010-01-31 21:00:45 +00:00
|
|
|
NTSTATUS Status = STATUS_SUCCESS;
|
2006-10-09 19:16:47 +00:00
|
|
|
|
2010-01-31 21:00:45 +00:00
|
|
|
DPRINT("Local Security Authority Subsystem\n");
|
|
|
|
DPRINT(" Initializing...\n");
|
1999-07-17 23:10:31 +00:00
|
|
|
|
2010-01-31 21:00:45 +00:00
|
|
|
/* Initialize the LSA server DLL. */
|
|
|
|
Status = LsapInitLsa();
|
|
|
|
if (!NT_SUCCESS(Status))
|
|
|
|
{
|
|
|
|
DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status);
|
|
|
|
goto ByeBye;
|
|
|
|
}
|
1999-07-17 23:10:31 +00:00
|
|
|
|
2010-10-16 08:48:25 +00:00
|
|
|
/* Start the Netlogon service. */
|
|
|
|
Status = ServiceInit();
|
|
|
|
if (!NT_SUCCESS(Status))
|
|
|
|
{
|
|
|
|
DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status);
|
|
|
|
goto ByeBye;
|
|
|
|
}
|
|
|
|
|
2010-01-31 21:00:45 +00:00
|
|
|
/* Initialize the SAM server DLL. */
|
|
|
|
Status = SamIInitialize();
|
|
|
|
if (!NT_SUCCESS(Status))
|
|
|
|
{
|
|
|
|
DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
|
|
|
|
goto ByeBye;
|
|
|
|
}
|
2005-06-26 21:01:19 +00:00
|
|
|
|
2010-01-31 21:00:45 +00:00
|
|
|
/* FIXME: More initialization */
|
2006-10-09 19:16:47 +00:00
|
|
|
|
2010-01-31 21:00:45 +00:00
|
|
|
DPRINT(" Done...\n");
|
2005-06-26 21:01:19 +00:00
|
|
|
|
2005-02-17 12:45:13 +00:00
|
|
|
ByeBye:
|
2010-01-31 21:00:45 +00:00
|
|
|
NtTerminateThread(NtCurrentThread(), Status);
|
1999-07-17 23:10:31 +00:00
|
|
|
|
2010-01-31 21:00:45 +00:00
|
|
|
return 0;
|
1999-07-17 23:10:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|