ReactOS 0.4.15-dev-7942-gd23573b
samsrv.h File Reference

Go to the source code of this file.

Functions

NTSTATUS NTAPI SamIInitialize (VOID)
 
NTSTATUS NTAPI SampInitializeRegistry (VOID)
 

Function Documentation

◆ SamIInitialize()

NTSTATUS NTAPI SamIInitialize ( VOID  )

Definition at line 102 of file samsrv.c.

103{
105
106 TRACE("SamIInitialize() called\n");
107
109 if (!NT_SUCCESS(Status))
111
113 if (!NT_SUCCESS(Status))
114 return Status;
115
116 if (SampIsSetupRunning())
117 {
119 if (!NT_SUCCESS(Status))
120 return Status;
121 }
122
124 if (!NT_SUCCESS(Status))
125 return Status;
126
128
129 /* Initialize the SAM database */
131 if (!NT_SUCCESS(Status))
132 return Status;
133
134 /* Start the RPC server */
136
137 return Status;
138}
LONG NTSTATUS
Definition: precomp.h:26
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
BOOLEAN NTAPI RtlGetNtProductType(_Out_ PNT_PRODUCT_TYPE ProductType)
Definition: version.c:96
NTSTATUS SampInitDatabase(VOID)
Definition: database.c:21
NTSTATUS SampInitializeDisplayCache(VOID)
Definition: display.c:143
BOOL SampIsSetupRunning(VOID)
Definition: utils.c:64
@ NtProductWinNt
Definition: shellpath.c:64
Status
Definition: gdiplustypes.h:25
NTSYSAPI VOID NTAPI RtlInitializeResource(_In_ PRTL_RESOURCE Resource)
VOID SampStartRpcServer(VOID)
Definition: samrpc.c:78
RTL_RESOURCE SampResource
Definition: samsrv.c:28
NTSTATUS NTAPI SampInitializeRegistry(VOID)
Definition: samsrv.c:143
static NTSTATUS SampInitHashes(VOID)
Definition: samsrv.c:36
NT_PRODUCT_TYPE SampProductType
Definition: samsrv.c:29
#define STATUS_SUCCESS
Definition: shellext.h:65
#define TRACE(s)
Definition: solgame.cpp:4

Referenced by wWinMain().

◆ SampInitializeRegistry()

NTSTATUS NTAPI SampInitializeRegistry ( VOID  )

Definition at line 143 of file samsrv.c.

144{
145 TRACE("SampInitializeRegistry() called\n");
146
148
149 return STATUS_SUCCESS;
150}
BOOL SampInitializeSAM(VOID)
Definition: setup.c:888

Referenced by SamIInitialize().