Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenlsass.c
Go to the documentation of this file.
00001 /* 00002 * reactos/subsys/system/lsass/lsass.c 00003 * 00004 * ReactOS Operating System 00005 * 00006 * -------------------------------------------------------------------- 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License along 00019 * with this program; if not, write to the Free Software Foundation, Inc., 00020 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00021 * 00022 * -------------------------------------------------------------------- 00023 * 00024 * 19990704 (Emanuele Aliberti) 00025 * Compiled successfully with egcs 1.1.2 00026 */ 00027 #define WIN32_NO_STATUS 00028 #include <windows.h> 00029 #define NTOS_MODE_USER 00030 #include <ndk/psfuncs.h> 00031 00032 #include <lsass/lsasrv.h> 00033 #include <samsrv/samsrv.h> 00034 #include <lsass/lsass.h> 00035 00036 #define NDEBUG 00037 #include <debug.h> 00038 00039 INT WINAPI 00040 wWinMain(IN HINSTANCE hInstance, 00041 IN HINSTANCE hPrevInstance, 00042 IN LPWSTR lpCmdLine, 00043 IN INT nShowCmd) 00044 { 00045 NTSTATUS Status = STATUS_SUCCESS; 00046 00047 DPRINT("Local Security Authority Subsystem\n"); 00048 DPRINT(" Initializing...\n"); 00049 00050 /* Initialize the LSA server DLL. */ 00051 Status = LsapInitLsa(); 00052 if (!NT_SUCCESS(Status)) 00053 { 00054 DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status); 00055 goto ByeBye; 00056 } 00057 00058 /* Start the Netlogon service. */ 00059 Status = ServiceInit(); 00060 if (!NT_SUCCESS(Status)) 00061 { 00062 DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status); 00063 goto ByeBye; 00064 } 00065 00066 /* Initialize the SAM server DLL. */ 00067 Status = SamIInitialize(); 00068 if (!NT_SUCCESS(Status)) 00069 { 00070 DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status); 00071 goto ByeBye; 00072 } 00073 00074 /* FIXME: More initialization */ 00075 00076 DPRINT(" Done...\n"); 00077 00078 ByeBye: 00079 NtTerminateThread(NtCurrentThread(), Status); 00080 00081 return 0; 00082 } 00083 00084 /* EOF */ Generated on Fri May 25 2012 04:16:55 for ReactOS by
1.7.6.1
|