a444cd9eb0c47edd9243f22efcc243ff5dc8dac2
[reactos.git] / reactos / base / system / lsass / lsass.c
1 /*
2 * reactos/subsys/system/lsass/lsass.c
3 *
4 * ReactOS Operating System
5 *
6 * --------------------------------------------------------------------
7 *
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.
12 *
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.
17 *
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.
21 *
22 * --------------------------------------------------------------------
23 *
24 * 19990704 (Emanuele Aliberti)
25 * Compiled successfully with egcs 1.1.2
26 */
27 #define WIN32_NO_STATUS
28 #include <windows.h>
29 #define NTOS_MODE_USER
30 #include <ndk/ntndk.h>
31
32 #include <lsass/lsasrv.h>
33 //#include <samsrv.h>
34 #include <lsass/lsass.h>
35
36 #define NDEBUG
37 #include <debug.h>
38
39 INT WINAPI
40 wWinMain(
41 IN HINSTANCE hInstance,
42 IN HINSTANCE hPrevInstance,
43 IN LPWSTR lpCmdLine,
44 IN INT nShowCmd)
45 {
46 NTSTATUS Status = STATUS_SUCCESS;
47
48 DPRINT("Local Security Authority Subsystem\n");
49 DPRINT(" Initializing...\n");
50
51 /* Initialize the LSA server DLL. */
52 Status = LsapInitLsa();
53 if (!NT_SUCCESS(Status))
54 {
55 DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status);
56 goto ByeBye;
57 }
58
59 #if 0
60 /* Initialize the SAM server DLL. */
61 Status = SamIInitialize();
62 if (!NT_SUCCESS(Status))
63 {
64 DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
65 goto ByeBye;
66 }
67 #endif
68
69 /* FIXME: More initialization */
70
71 DPRINT(" Done...\n");
72
73 ByeBye:
74 NtTerminateThread(NtCurrentThread(), Status);
75
76 return 0;
77 }
78
79 /* EOF */