1 /* $Id: lsass.c,v 1.1 1999/07/17 23:10:29 ea Exp $
3 * reactos/services/lsass/lsass.c
5 * ReactOS Operating System
7 * --------------------------------------------------------------------
9 * This software is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This software is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this software; see the file COPYING.LIB. If not, write
21 * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
24 * --------------------------------------------------------------------
26 * 19990704 (Emanuele Aliberti)
27 * Compiled successfully with egcs 1.1.2
29 #include <ddk/ntddk.h>
32 BOOL
InitLsa(VOID
); /* ./init.c */
36 DisplayString( LPCWSTR lpwString
)
40 us
.Buffer
= (LPWSTR
) lpwString
;
41 us
.Length
= wcslen(lpwString
) * sizeof (WCHAR
);
42 us
.MaximumLength
= us
.Length
+ sizeof (WCHAR
);
43 NtDisplayString( & us
);
47 /* Native image's entry point */
50 NtProcessStartup( PSTARTUP_ARGUMENT StartupArgument
)
52 DisplayString( L
"Local Security Authority Subsystem:\n" );
53 DisplayString( L
"\tInitializing...\n" );
55 if (TRUE
== InitLsa())
57 DisplayString( L
"\tInitialization OK\n" );
58 /* FIXME: do nothing loop */
66 DisplayString( L
"\tInitialization failed!\n" );
68 NtTerminateProcess( NtCurrentProcess(), 0 );