reactos/base/system/lsass/lsass.c

84 lines
2.2 KiB
C
Raw Normal View History

/*
* reactos/subsys/system/lsass/lsass.c
*
1999-07-17 23:10:31 +00:00
* ReactOS Operating System
*
1999-07-17 23:10:31 +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
*
* 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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
1999-07-17 23:10:31 +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
*
* --------------------------------------------------------------------
*
1999-07-17 23:10:31 +00:00
* 19990704 (Emanuele Aliberti)
* Compiled successfully with egcs 1.1.2
*/
#define WIN32_NO_STATUS
#define NTOS_MODE_USER
#include <ndk/psfuncs.h>
#include <lsass/lsasrv.h>
#include <samsrv/samsrv.h>
1999-07-17 23:10:31 +00:00
#define NDEBUG
#include <debug.h>
1999-07-17 23:10:31 +00:00
INT WINAPI
wWinMain(IN HINSTANCE hInstance,
IN HINSTANCE hPrevInstance,
IN LPWSTR lpCmdLine,
IN INT nShowCmd)
{
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("Local Security Authority Subsystem\n");
DPRINT(" Initializing...\n");
1999-07-17 23:10:31 +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
/* Start the Netlogon service. */
Status = ServiceInit();
if (!NT_SUCCESS(Status))
{
DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status);
goto ByeBye;
}
/* Initialize the SAM server DLL. */
Status = SamIInitialize();
if (!NT_SUCCESS(Status))
{
DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
goto ByeBye;
}
/* FIXME: More initialization */
DPRINT(" Done...\n");
ByeBye:
NtTerminateThread(NtCurrentThread(), Status);
1999-07-17 23:10:31 +00:00
return 0;
1999-07-17 23:10:31 +00:00
}
/* EOF */