[MSIEXEC] Sync with Wine Staging 2.16. CORE-13762
[reactos.git] / base / system / lsass / lsass.c
index 3dae3ca..9fffd8e 100644 (file)
  *             Compiled successfully with egcs 1.1.2
  */
 #define WIN32_NO_STATUS
-#include <windows.h>
 #define NTOS_MODE_USER
+
 #include <ndk/psfuncs.h>
+#include <ndk/rtlfuncs.h>
 
 #include <lsass/lsasrv.h>
-//#include <samsrv.h>
-#include <lsass/lsass.h>
+#include <samsrv/samsrv.h>
 
 #define NDEBUG
 #include <debug.h>
@@ -47,6 +47,9 @@ wWinMain(IN HINSTANCE hInstance,
     DPRINT("Local Security Authority Subsystem\n");
     DPRINT("  Initializing...\n");
 
+    /* Make us critical */
+    RtlSetProcessIsCritical(TRUE, NULL, TRUE);
+
     /* Initialize the LSA server DLL. */
     Status = LsapInitLsa();
     if (!NT_SUCCESS(Status))
@@ -63,7 +66,6 @@ wWinMain(IN HINSTANCE hInstance,
         goto ByeBye;
     }
 
-#if 0
     /* Initialize the SAM server DLL. */
     Status = SamIInitialize();
     if (!NT_SUCCESS(Status))
@@ -71,7 +73,6 @@ wWinMain(IN HINSTANCE hInstance,
         DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
         goto ByeBye;
     }
-#endif
 
     /* FIXME: More initialization */