/* Defined in include/reactos/services/services.h */
// #define SCM_START_EVENT L"SvcctrlStartEvent_A3752DX"
#define SCM_AUTOSTARTCOMPLETE_EVENT L"SC_AutoStartComplete"
-#define LSA_RPC_SERVER_ACTIVE L"LSA_RPC_SERVER_ACTIVE"
BOOL ScmInitialize = FALSE;
BOOL ScmShutdown = FALSE;
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)
{
- 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
{
goto done;
}
- /* Wait for the LSA server */
- ScmWaitForLsa();
-
/* Update the services database */
ScmGetBootAndSystemDriverState();