mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 05:58:13 +00:00
[SERVICES] Minor additions.
- Remove a redundant ScmWaitForLsa() call. - Remove the LSA_RPC_SERVER_ACTIVE macro (just use directly the string). - Improve output of DPRINTs.
This commit is contained in:
parent
75dc031080
commit
fafcd50a35
1 changed files with 2 additions and 6 deletions
|
@ -24,7 +24,6 @@ int WINAPI RegisterServicesProcess(DWORD ServicesProcessId);
|
||||||
/* Defined in include/reactos/services/services.h */
|
/* Defined in include/reactos/services/services.h */
|
||||||
// #define SCM_START_EVENT L"SvcctrlStartEvent_A3752DX"
|
// #define SCM_START_EVENT L"SvcctrlStartEvent_A3752DX"
|
||||||
#define SCM_AUTOSTARTCOMPLETE_EVENT L"SC_AutoStartComplete"
|
#define SCM_AUTOSTARTCOMPLETE_EVENT L"SC_AutoStartComplete"
|
||||||
#define LSA_RPC_SERVER_ACTIVE L"LSA_RPC_SERVER_ACTIVE"
|
|
||||||
|
|
||||||
BOOL ScmInitialize = FALSE;
|
BOOL ScmInitialize = FALSE;
|
||||||
BOOL ScmShutdown = FALSE;
|
BOOL ScmShutdown = FALSE;
|
||||||
|
@ -85,10 +84,10 @@ ScmLogEvent(DWORD dwEventId,
|
||||||
VOID
|
VOID
|
||||||
ScmWaitForLsa(VOID)
|
ScmWaitForLsa(VOID)
|
||||||
{
|
{
|
||||||
HANDLE hEvent = CreateEventW(NULL, TRUE, FALSE, LSA_RPC_SERVER_ACTIVE);
|
HANDLE hEvent = CreateEventW(NULL, TRUE, FALSE, L"LSA_RPC_SERVER_ACTIVE");
|
||||||
if (hEvent == NULL)
|
if (hEvent == NULL)
|
||||||
{
|
{
|
||||||
DPRINT1("Failed to create the notification event (Error %lu)\n", GetLastError());
|
DPRINT1("Failed to create or open the notification event (Error %lu)\n", GetLastError());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -194,9 +193,6 @@ wWinMain(HINSTANCE hInstance,
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wait for the LSA server */
|
|
||||||
ScmWaitForLsa();
|
|
||||||
|
|
||||||
/* Update the services database */
|
/* Update the services database */
|
||||||
ScmGetBootAndSystemDriverState();
|
ScmGetBootAndSystemDriverState();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue