mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Formatting and add a call to StartServiceCtrlDispatcher
svn path=/trunk/; revision=24476
This commit is contained in:
@@ -37,44 +37,63 @@
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
static VOID CALLBACK
|
||||
ServiceMain(DWORD argc, LPTSTR *argv);
|
||||
|
||||
int STDCALL
|
||||
WinMain(HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPSTR lpCmdLine,
|
||||
int nShowCmd)
|
||||
static SERVICE_TABLE_ENTRY ServiceTable[2] =
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
{TEXT("NetLogon"), ServiceMain},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
DPRINT("Local Security Authority Subsystem\n");
|
||||
DPRINT(" Initializing...\n");
|
||||
static VOID CALLBACK
|
||||
ServiceMain(
|
||||
IN DWORD argc,
|
||||
IN LPWSTR *argv)
|
||||
{
|
||||
DPRINT1("ServiceMain() called\n");
|
||||
}
|
||||
|
||||
/* Initialize the LSA server DLL. */
|
||||
Status = LsapInitLsa();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status);
|
||||
goto ByeBye;
|
||||
}
|
||||
INT WINAPI
|
||||
WinMain(
|
||||
IN HINSTANCE hInstance,
|
||||
IN HINSTANCE hPrevInstance,
|
||||
IN LPSTR lpCmdLine,
|
||||
IN INT nShowCmd)
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
DPRINT("Local Security Authority Subsystem\n");
|
||||
DPRINT(" Initializing...\n");
|
||||
|
||||
/* Initialize the LSA server DLL. */
|
||||
Status = LsapInitLsa();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status);
|
||||
goto ByeBye;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Initialize the SAM server DLL. */
|
||||
Status = SamIInitialize();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
|
||||
goto ByeBye;
|
||||
}
|
||||
/* Initialize the SAM server DLL. */
|
||||
Status = SamIInitialize();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
|
||||
goto ByeBye;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* FIXME: More initialization */
|
||||
/* FIXME: More initialization */
|
||||
|
||||
DPRINT(" Done...\n");
|
||||
StartServiceCtrlDispatcher(ServiceTable);
|
||||
|
||||
DPRINT(" Done...\n");
|
||||
|
||||
ByeBye:
|
||||
NtTerminateThread(NtCurrentThread(), Status);
|
||||
NtTerminateThread(NtCurrentThread(), Status);
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<define name="UNICODE" />
|
||||
<define name="_UNICODE" />
|
||||
<define name="__USE_W32API" />
|
||||
<library>advapi32</library>
|
||||
<library>ntdll</library>
|
||||
<library>kernel32</library>
|
||||
<library>lsasrv</library>
|
||||
|
||||
Reference in New Issue
Block a user