mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:33:20 +00:00
[LSASRV]
Open/Create and set the \\SECURITY\\LSA_AUTHENTICATION_INITIALIZED event after the LsaAuthenticationPort has been created. svn path=/trunk/; revision=72755
This commit is contained in:
parent
0b423f6a54
commit
dff8dfadb8
2 changed files with 40 additions and 1 deletions
|
@ -262,8 +262,12 @@ StartAuthenticationPort(VOID)
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
UNICODE_STRING PortName;
|
UNICODE_STRING PortName;
|
||||||
DWORD ThreadId;
|
DWORD ThreadId;
|
||||||
|
UNICODE_STRING EventName;
|
||||||
|
HANDLE EventHandle;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
TRACE("StartAuthenticationPort()\n");
|
||||||
|
|
||||||
/* Initialize the logon context list */
|
/* Initialize the logon context list */
|
||||||
InitializeListHead(&LsapLogonContextList);
|
InitializeListHead(&LsapLogonContextList);
|
||||||
|
|
||||||
|
@ -283,7 +287,41 @@ StartAuthenticationPort(VOID)
|
||||||
sizeof(LSA_API_MSG) * 32);
|
sizeof(LSA_API_MSG) * 32);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
TRACE("NtCreatePort() failed (Status %lx)\n", Status);
|
WARN("NtCreatePort() failed (Status %lx)\n", Status);
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
|
|
||||||
|
RtlInitUnicodeString(&EventName,
|
||||||
|
L"\\SECURITY\\LSA_AUTHENTICATION_INITIALIZED");
|
||||||
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
|
&EventName,
|
||||||
|
OBJ_CASE_INSENSITIVE | OBJ_PERMANENT,
|
||||||
|
NULL,
|
||||||
|
NULL);
|
||||||
|
Status = NtOpenEvent(&EventHandle,
|
||||||
|
EVENT_MODIFY_STATE,
|
||||||
|
&ObjectAttributes);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
TRACE("NtOpenEvent failed (Status 0x%08lx)\n", Status);
|
||||||
|
|
||||||
|
Status = NtCreateEvent(&EventHandle,
|
||||||
|
EVENT_MODIFY_STATE,
|
||||||
|
&ObjectAttributes,
|
||||||
|
NotificationEvent,
|
||||||
|
FALSE);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
WARN("NtCreateEvent failed (Status 0x%08lx)\n", Status);
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Status = NtSetEvent(EventHandle, NULL);
|
||||||
|
NtClose(EventHandle);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
WARN("NtSetEvent failed (Status 0x%08lx)\n", Status);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ndk/cmfuncs.h>
|
#include <ndk/cmfuncs.h>
|
||||||
|
#include <ndk/exfuncs.h>
|
||||||
#include <ndk/kefuncs.h>
|
#include <ndk/kefuncs.h>
|
||||||
#include <ndk/mmfuncs.h>
|
#include <ndk/mmfuncs.h>
|
||||||
#include <ndk/obfuncs.h>
|
#include <ndk/obfuncs.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue