Lines Matching refs:ApiMessage

212     LSA_API_MSG ApiMessage;  in LsaEnumerateLogonSessions()  local
221 ApiMessage.ApiNumber = LSASS_REQUEST_ENUM_LOGON_SESSIONS; in LsaEnumerateLogonSessions()
222 ApiMessage.h.u1.s1.DataLength = LSA_PORT_DATA_SIZE(ApiMessage.EnumLogonSessions); in LsaEnumerateLogonSessions()
223 ApiMessage.h.u1.s1.TotalLength = LSA_PORT_MESSAGE_SIZE; in LsaEnumerateLogonSessions()
224 ApiMessage.h.u2.ZeroInit = 0; in LsaEnumerateLogonSessions()
227 (PPORT_MESSAGE)&ApiMessage, in LsaEnumerateLogonSessions()
228 (PPORT_MESSAGE)&ApiMessage); in LsaEnumerateLogonSessions()
235 if (!NT_SUCCESS(ApiMessage.Status)) in LsaEnumerateLogonSessions()
237 ERR("NtRequestWaitReplyPort() failed (ApiMessage.Status 0x%08lx)\n", ApiMessage.Status); in LsaEnumerateLogonSessions()
238 return ApiMessage.Status; in LsaEnumerateLogonSessions()
241 *LogonSessionCount = ApiMessage.EnumLogonSessions.Reply.LogonSessionCount; in LsaEnumerateLogonSessions()
242 *LogonSessionList = ApiMessage.EnumLogonSessions.Reply.LogonSessionBuffer; in LsaEnumerateLogonSessions()
257 LSA_API_MSG ApiMessage; in LsaGetLogonSessionData() local
267 ApiMessage.ApiNumber = LSASS_REQUEST_GET_LOGON_SESSION_DATA; in LsaGetLogonSessionData()
268 ApiMessage.h.u1.s1.DataLength = LSA_PORT_DATA_SIZE(ApiMessage.GetLogonSessionData); in LsaGetLogonSessionData()
269 ApiMessage.h.u1.s1.TotalLength = LSA_PORT_MESSAGE_SIZE; in LsaGetLogonSessionData()
270 ApiMessage.h.u2.ZeroInit = 0; in LsaGetLogonSessionData()
272 RtlCopyLuid(&ApiMessage.GetLogonSessionData.Request.LogonId, in LsaGetLogonSessionData()
276 (PPORT_MESSAGE)&ApiMessage, in LsaGetLogonSessionData()
277 (PPORT_MESSAGE)&ApiMessage); in LsaGetLogonSessionData()
284 if (!NT_SUCCESS(ApiMessage.Status)) in LsaGetLogonSessionData()
286 ERR("NtRequestWaitReplyPort() failed (ApiMessage.Status 0x%08lx)\n", ApiMessage.Status); in LsaGetLogonSessionData()
287 return ApiMessage.Status; in LsaGetLogonSessionData()
290 SessionData = ApiMessage.GetLogonSessionData.Reply.SessionDataBuffer; in LsaGetLogonSessionData()
335 LSA_API_MSG ApiMessage; in LsaRegisterPolicyChangeNotification() local
345 ApiMessage.ApiNumber = LSASS_REQUEST_POLICY_CHANGE_NOTIFY; in LsaRegisterPolicyChangeNotification()
346 ApiMessage.h.u1.s1.DataLength = LSA_PORT_DATA_SIZE(ApiMessage.PolicyChangeNotify); in LsaRegisterPolicyChangeNotification()
347 ApiMessage.h.u1.s1.TotalLength = LSA_PORT_MESSAGE_SIZE; in LsaRegisterPolicyChangeNotification()
348 ApiMessage.h.u2.ZeroInit = 0; in LsaRegisterPolicyChangeNotification()
350 ApiMessage.PolicyChangeNotify.Request.InformationClass = InformationClass; in LsaRegisterPolicyChangeNotification()
351 ApiMessage.PolicyChangeNotify.Request.NotificationEventHandle = NotificationEventHandle; in LsaRegisterPolicyChangeNotification()
352 ApiMessage.PolicyChangeNotify.Request.Register = TRUE; in LsaRegisterPolicyChangeNotification()
355 (PPORT_MESSAGE)&ApiMessage, in LsaRegisterPolicyChangeNotification()
356 (PPORT_MESSAGE)&ApiMessage); in LsaRegisterPolicyChangeNotification()
363 if (!NT_SUCCESS(ApiMessage.Status)) in LsaRegisterPolicyChangeNotification()
365 ERR("NtRequestWaitReplyPort() failed (ApiMessage.Status 0x%08lx)\n", ApiMessage.Status); in LsaRegisterPolicyChangeNotification()
366 return ApiMessage.Status; in LsaRegisterPolicyChangeNotification()
382 LSA_API_MSG ApiMessage; in LsaUnregisterPolicyChangeNotification() local
392 ApiMessage.ApiNumber = LSASS_REQUEST_POLICY_CHANGE_NOTIFY; in LsaUnregisterPolicyChangeNotification()
393 ApiMessage.h.u1.s1.DataLength = LSA_PORT_DATA_SIZE(ApiMessage.PolicyChangeNotify); in LsaUnregisterPolicyChangeNotification()
394 ApiMessage.h.u1.s1.TotalLength = LSA_PORT_MESSAGE_SIZE; in LsaUnregisterPolicyChangeNotification()
395 ApiMessage.h.u2.ZeroInit = 0; in LsaUnregisterPolicyChangeNotification()
397 ApiMessage.PolicyChangeNotify.Request.InformationClass = InformationClass; in LsaUnregisterPolicyChangeNotification()
398 ApiMessage.PolicyChangeNotify.Request.NotificationEventHandle = NotificationEventHandle; in LsaUnregisterPolicyChangeNotification()
399 ApiMessage.PolicyChangeNotify.Request.Register = FALSE; in LsaUnregisterPolicyChangeNotification()
402 (PPORT_MESSAGE)&ApiMessage, in LsaUnregisterPolicyChangeNotification()
403 (PPORT_MESSAGE)&ApiMessage); in LsaUnregisterPolicyChangeNotification()
410 if (!NT_SUCCESS(ApiMessage.Status)) in LsaUnregisterPolicyChangeNotification()
412 ERR("NtRequestWaitReplyPort() failed (ApiMessage.Status 0x%08lx)\n", ApiMessage.Status); in LsaUnregisterPolicyChangeNotification()
413 return ApiMessage.Status; in LsaUnregisterPolicyChangeNotification()