2 * reactos/subsys/system/lsass/lsass.c
4 * ReactOS Operating System
6 * --------------------------------------------------------------------
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 * --------------------------------------------------------------------
24 * 19990704 (Emanuele Aliberti)
25 * Compiled successfully with egcs 1.1.2
27 #define WIN32_NO_STATUS
29 #define NTOS_MODE_USER
30 #include <ndk/ntndk.h>
32 #include <lsass/lsasrv.h>
34 #include <lsass/lsass.h>
40 wWinMain(IN HINSTANCE hInstance
,
41 IN HINSTANCE hPrevInstance
,
45 NTSTATUS Status
= STATUS_SUCCESS
;
47 DPRINT("Local Security Authority Subsystem\n");
48 DPRINT(" Initializing...\n");
50 /* Initialize the LSA server DLL. */
51 Status
= LsapInitLsa();
52 if (!NT_SUCCESS(Status
))
54 DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status
);
58 /* Start the Netlogon service. */
59 Status
= ServiceInit();
60 if (!NT_SUCCESS(Status
))
62 DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status
);
67 /* Initialize the SAM server DLL. */
68 Status
= SamIInitialize();
69 if (!NT_SUCCESS(Status
))
71 DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status
);
76 /* FIXME: More initialization */
81 NtTerminateThread(NtCurrentThread(), Status
);