27 ERR(
"Security: LSA Component Test Command Received\n");
35 ERR(
"LsapAdtWriteLog\n");
55 HANDLE MessagePort, DummyPortHandle;
60 Message.Header.u1.s1.DataLength = 0;
66 ERR(
"LsapRmServerThread - Port Listen failed 0x%lx\n",
Status);
84 ERR(
"LsapRmServerThread - Port Accept Connect failed 0x%lx\n",
Status);
92 ERR(
"LsapRmServerThread - Port Complete Connect failed 0x%lx\n",
Status);
109 ERR(
"LsapRmServerThread - Failed to get message: 0x%lx\n",
Status);
150 ERR(
"LsapRmServerThread - invalid API number: 0x%lx\n",
158 ERR(
"LsapRmServerThread - unexpected message type: 0x%lx\n",
187 ERR(
"LsapRmInitializeServer - Port Create failed 0x%lx\n",
Status);
197 ERR(
"LsapRmInitializeServer - Lsa Init Event Open failed 0x%lx\n",
Status);
205 ERR(
"LsapRmInitializeServer - Set Init Event failed 0x%lx\n",
Status);
226 ERR(
"LsapRmInitializeServer - Connect to Rm Command Port failed 0x%lx\n",
Status);
232 if (ThreadHandle ==
NULL)
234 ERR(
"LsapRmInitializeServer - Create Thread failed 0x%lx\n",
Status);
254 RequestMessage.
Header.u2.ZeroInit = 0;
255 RequestMessage.
Header.u1.s1.TotalLength =
257 RequestMessage.
Header.u1.s1.DataLength =
258 RequestMessage.
Header.u1.s1.TotalLength -
294 RequestMessage.
Header.u2.ZeroInit = 0;
295 RequestMessage.
Header.u1.s1.TotalLength =
297 RequestMessage.
Header.u1.s1.DataLength =
298 RequestMessage.
Header.u1.s1.TotalLength -
NTSTATUS NTAPI NtAcceptConnectPort(OUT PHANDLE PortHandle, IN PVOID PortContext OPTIONAL, IN PPORT_MESSAGE ReplyMessage, IN BOOLEAN AcceptConnection, IN OUT PPORT_VIEW ServerView OPTIONAL, OUT PREMOTE_PORT_VIEW ClientView OPTIONAL)
NTSTATUS NTAPI NtCompleteConnectPort(IN HANDLE PortHandle)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
static VOID LsapAdtWriteLog(PLSAP_RM_API_MESSAGE Message)
NTSTATUS LsapRmDeleteLogonSession(PLUID LogonId)
NTSTATUS LsapRmCreateLogonSession(PLUID LogonId)
static VOID LsapComponentTest(PLSAP_RM_API_MESSAGE Message)
static VOID LsapAsync(PLSAP_RM_API_MESSAGE Message)
static DWORD WINAPI LsapRmServerThread(PVOID StartContext)
NTSTATUS LsapRmInitializeServer(VOID)
static const WCHAR Message[]
NTSYSAPI void WINAPI RtlCopyLuid(PLUID, const LUID *)
#define LPC_CONNECTION_REQUEST
#define InitializeObjectAttributes(p, n, a, r, s)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
struct _REMOTE_PORT_VIEW REMOTE_PORT_VIEW
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE _In_ ULONG _In_ ULONG _In_opt_ PTOKEN_GROUPS _In_ PTOKEN_SOURCE _Out_ PVOID _Out_ PULONG _Inout_ PLUID LogonId
NTSTATUS NTAPI NtSetEvent(IN HANDLE EventHandle, OUT PLONG PreviousState OPTIONAL)
NTSTATUS NTAPI NtOpenEvent(OUT PHANDLE EventHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes)
NTSTATUS NTAPI NtConnectPort(OUT PHANDLE PortHandle, IN PUNICODE_STRING PortName, IN PSECURITY_QUALITY_OF_SERVICE SecurityQos, IN OUT PPORT_VIEW ClientView OPTIONAL, IN OUT PREMOTE_PORT_VIEW ServerView OPTIONAL, OUT PULONG MaxMessageLength OPTIONAL, IN OUT PVOID ConnectionInformation OPTIONAL, IN OUT PULONG ConnectionInformationLength OPTIONAL)
NTSTATUS NTAPI NtCreatePort(OUT PHANDLE PortHandle, IN POBJECT_ATTRIBUTES ObjectAttributes, IN ULONG MaxConnectInfoLength, IN ULONG MaxDataLength, IN ULONG MaxPoolUsage)
NTSTATUS NTAPI NtListenPort(IN HANDLE PortHandle, OUT PPORT_MESSAGE ConnectMessage)
NTSTATUS NTAPI NtReplyWaitReceivePort(IN HANDLE PortHandle, OUT PVOID *PortContext OPTIONAL, IN PPORT_MESSAGE ReplyMessage OPTIONAL, OUT PPORT_MESSAGE ReceiveMessage)
NTSTATUS NTAPI NtRequestWaitReplyPort(IN HANDLE PortHandle, IN PPORT_MESSAGE LpcRequest, IN OUT PPORT_MESSAGE LpcReply)
SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel
union _SEP_RM_API_MESSAGE::@3478 u
#define STATUS_INSUFFICIENT_RESOURCES
BOOL WINAPI ReplyMessage(_In_ LRESULT)
#define PORT_MAXIMUM_MESSAGE_LENGTH
#define SECURITY_DYNAMIC_TRACKING