static extern bool LogonUser( string principal, string authority, string password, LogonSessionType logonType, LogonProvider logonProvider, out IntPtr token);
public static extern bool LogonUser(string lpszUserName, string lpszDomain, string lpszPassword, LogonSessionType logonType, LogonProvider logonProvider, out IntPtr phToken);
private static extern bool LogonUser(string principal, string authority, string password, LogonSessionType logonType, LogonProvider logonProvider, out IntPtr token);