internal static extern int LsaLogonUser(
     [In] SafeLsaLogonProcessHandle LsaHandle,
     [In] ref UNICODE_INTPTR_STRING OriginName,
     [In] SecurityLogonType LogonType,
     [In] uint AuthenticationPackage,
     [In] IntPtr AuthenticationInformation,
     [In] uint AuthenticationInformationLength,
     [In] IntPtr LocalGroups,
     [In] ref TOKEN_SOURCE SourceContext,
     [Out] out SafeLsaReturnBufferHandle ProfileBuffer,
     [Out] out uint ProfileBufferLength,
     [Out] out LUID LogonId,
     [Out] out SafeCloseHandle Token,
     [Out] out QUOTA_LIMITS Quotas,
     [Out] out int SubStatus
     );
 internal static extern int LsaConnectUntrusted(out SafeLsaLogonProcessHandle lsaHandle);
 internal static extern int LsaRegisterLogonProcess([In] ref UNICODE_INTPTR_STRING logonProcessName, out SafeLsaLogonProcessHandle lsaHandle, out IntPtr securityMode);
 internal static extern int LsaLookupAuthenticationPackage([In] SafeLsaLogonProcessHandle lsaHandle, [In] ref UNICODE_INTPTR_STRING packageName, out uint authenticationPackage);