[WIN32 DLLS]
[reactos.git] / dll / win32 / lsasrv / lsasrv.c
index 2b79108..be06039 100644 (file)
@@ -8,15 +8,8 @@
 
 /* INCLUDES ****************************************************************/
 
-#define WIN32_NO_STATUS
-#include <windows.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
-
 #include "lsasrv.h"
 
-#include "wine/debug.h"
-
 WINE_DEFAULT_DEBUG_CHANNEL(lsasrv);
 
 
@@ -30,6 +23,9 @@ LsapInitLsa(VOID)
 
     TRACE("LsapInitLsa() called\n");
 
+    /* Initialize the well known SIDs */
+    LsapInitSids();
+
     /* Start the RPC server */
     LsarStartRpcServer();
 
@@ -49,9 +45,10 @@ LsapInitLsa(VOID)
             hEvent = OpenEventW(GENERIC_WRITE,
                                 FALSE,
                                 L"LSA_RPC_SERVER_ACTIVE");
-            if (hEvent != NULL)
+            if (hEvent == NULL)
             {
-               ERR("Could not open the notification event!");
+               ERR("Could not open the notification event (Error %lu)\n", GetLastError());
+               return STATUS_UNSUCCESSFUL;
             }
         }
     }
@@ -67,7 +64,15 @@ LsapInitLsa(VOID)
 }
 
 
-void __RPC_FAR * __RPC_USER midl_user_allocate(SIZE_T len)
+NTSTATUS WINAPI
+ServiceInit(VOID)
+{
+    TRACE("ServiceInit() called\n");
+    return STATUS_SUCCESS;
+}
+
+
+void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len)
 {
     return RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, len);
 }