mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 01:24:11 +00:00
Formatting and add a call to StartServiceCtrlDispatcher
svn path=/trunk/; revision=24476
This commit is contained in:
parent
f86ee0a05c
commit
e16a26e1f2
2 changed files with 46 additions and 26 deletions
|
@ -37,44 +37,63 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
static VOID CALLBACK
|
||||||
|
ServiceMain(DWORD argc, LPTSTR *argv);
|
||||||
|
|
||||||
int STDCALL
|
static SERVICE_TABLE_ENTRY ServiceTable[2] =
|
||||||
WinMain(HINSTANCE hInstance,
|
|
||||||
HINSTANCE hPrevInstance,
|
|
||||||
LPSTR lpCmdLine,
|
|
||||||
int nShowCmd)
|
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
{TEXT("NetLogon"), ServiceMain},
|
||||||
|
{NULL, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
DPRINT("Local Security Authority Subsystem\n");
|
static VOID CALLBACK
|
||||||
DPRINT(" Initializing...\n");
|
ServiceMain(
|
||||||
|
IN DWORD argc,
|
||||||
|
IN LPWSTR *argv)
|
||||||
|
{
|
||||||
|
DPRINT1("ServiceMain() called\n");
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize the LSA server DLL. */
|
INT WINAPI
|
||||||
Status = LsapInitLsa();
|
WinMain(
|
||||||
if (!NT_SUCCESS(Status))
|
IN HINSTANCE hInstance,
|
||||||
{
|
IN HINSTANCE hPrevInstance,
|
||||||
DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status);
|
IN LPSTR lpCmdLine,
|
||||||
goto ByeBye;
|
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
|
#if 0
|
||||||
/* Initialize the SAM server DLL. */
|
/* Initialize the SAM server DLL. */
|
||||||
Status = SamIInitialize();
|
Status = SamIInitialize();
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
|
DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
|
||||||
goto ByeBye;
|
goto ByeBye;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* FIXME: More initialization */
|
/* FIXME: More initialization */
|
||||||
|
|
||||||
DPRINT(" Done...\n");
|
StartServiceCtrlDispatcher(ServiceTable);
|
||||||
|
|
||||||
|
DPRINT(" Done...\n");
|
||||||
|
|
||||||
ByeBye:
|
ByeBye:
|
||||||
NtTerminateThread(NtCurrentThread(), Status);
|
NtTerminateThread(NtCurrentThread(), Status);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
<define name="UNICODE" />
|
<define name="UNICODE" />
|
||||||
<define name="_UNICODE" />
|
<define name="_UNICODE" />
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
|
<library>advapi32</library>
|
||||||
<library>ntdll</library>
|
<library>ntdll</library>
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
<library>lsasrv</library>
|
<library>lsasrv</library>
|
||||||
|
|
Loading…
Reference in a new issue