[LSASRV]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 16 Oct 2010 08:48:25 +0000 (08:48 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 16 Oct 2010 08:48:25 +0000 (08:48 +0000)
Add ServiceInit() stub and call it from lsass.

svn path=/trunk/; revision=49163

reactos/base/system/lsass/lsass.c
reactos/dll/win32/lsasrv/lsasrv.c
reactos/dll/win32/lsasrv/lsasrv.spec
reactos/include/reactos/subsys/lsass/lsasrv.h

index 30fa05d..57216a4 100644 (file)
@@ -55,6 +55,14 @@ wWinMain(IN HINSTANCE hInstance,
         goto ByeBye;
     }
 
+    /* Start the Netlogon service. */
+    Status = ServiceInit();
+    if (!NT_SUCCESS(Status))
+    {
+        DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status);
+        goto ByeBye;
+    }
+
 #if 0
     /* Initialize the SAM server DLL. */
     Status = SamIInitialize();
index c6468a4..1a007ec 100644 (file)
@@ -64,6 +64,14 @@ LsapInitLsa(VOID)
 }
 
 
+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);
index 17f5d36..4bdc36c 100644 (file)
@@ -62,4 +62,4 @@
  @ stub LsarSetSecret
  @ stub LsarSetSecurityObject
  @ stub LsarSetSystemAccessAccount
- @ stub ServiceInit
+ @ stdcall ServiceInit()
index 48120bf..445506f 100644 (file)
@@ -5,4 +5,7 @@
 NTSTATUS WINAPI
 LsapInitLsa(VOID);
 
+NTSTATUS WINAPI
+ServiceInit(VOID);
+
 #endif /* __LSASRV_H */