public static extern uint LsaRegisterLogonProcess([In, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LsaStringMarshaler))] string LogonProcessName, out SafeLsaConnectionHandle LsaHandle, out uint SecurityMode);
public static extern uint LsaLookupAuthenticationPackage(SafeLsaConnectionHandle LsaHandle, [In, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LsaStringMarshaler))] string PackageName, out int AuthenticationPackage);
public static extern uint LsaConnectUntrusted(out SafeLsaConnectionHandle LsaHandle);
// public static extern NTStatus LsaConnectUntrusted(ref IntPtr LsaHandle); public static extern NTStatus LsaConnectUntrusted(out SafeLsaConnectionHandle LsaHandle);