ReactOS  0.4.13-dev-563-g0561610
lsass.c File Reference
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
#include <lsass/lsasrv.h>
#include <samsrv/samsrv.h>
#include <debug.h>
Include dependency graph for lsass.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define NTOS_MODE_USER
 
#define NDEBUG
 

Functions

INT WINAPI wWinMain (IN HINSTANCE hInstance, IN HINSTANCE hPrevInstance, IN LPWSTR lpCmdLine, IN INT nShowCmd)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 36 of file lsass.c.

◆ NTOS_MODE_USER

#define NTOS_MODE_USER

Definition at line 28 of file lsass.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 27 of file lsass.c.

Function Documentation

◆ wWinMain()

INT WINAPI wWinMain ( IN HINSTANCE  hInstance,
IN HINSTANCE  hPrevInstance,
IN LPWSTR  lpCmdLine,
IN INT  nShowCmd 
)

Definition at line 40 of file lsass.c.

44 {
46 
47  DPRINT("Local Security Authority Subsystem\n");
48  DPRINT(" Initializing...\n");
49 
50  /* Make us critical */
52 
53  /* Initialize the LSA server DLL. */
54  Status = LsapInitLsa();
55  if (!NT_SUCCESS(Status))
56  {
57  DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status);
58  goto ByeBye;
59  }
60 
61  /* Start the Netlogon service. */
62  Status = ServiceInit();
63  if (!NT_SUCCESS(Status))
64  {
65  DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status);
66  goto ByeBye;
67  }
68 
69  /* Initialize the SAM server DLL. */
71  if (!NT_SUCCESS(Status))
72  {
73  DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
74  goto ByeBye;
75  }
76 
77  /* FIXME: More initialization */
78 
79  DPRINT(" Done...\n");
80 
81 ByeBye:
83 
84  return 0;
85 }
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
#define NtCurrentThread()
NTSTATUS WINAPI LsapInitLsa(VOID)
Definition: lsasrv.c:275
NTSTATUS NTAPI SamIInitialize(VOID)
Definition: samsrv.c:101
smooth NULL
Definition: ftsmooth.c:416
void DPRINT(...)
Definition: polytest.cpp:61
NTSTATUS NtTerminateThread(IN HANDLE ThreadHandle OPTIONAL, IN NTSTATUS ExitStatus)
Definition: kill.c:1278
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
static DWORD ServiceInit(VOID)
Definition: eventlog.c:117
Status
Definition: gdiplustypes.h:24
#define DPRINT1
Definition: precomp.h:8
NTSYSAPI NTSTATUS __cdecl RtlSetProcessIsCritical(_In_ BOOLEAN NewValue, _Out_opt_ PBOOLEAN OldValue, _In_ BOOLEAN NeedBreaks)
return STATUS_SUCCESS
Definition: btrfs.c:2777