一、创建登录界面
二、具体实现代码
//调用Win32API Import advapi32.dll
[DllImport("advapi32.dll")]
//映射函数LogonUser
public static extern bool LogonUser(string lpszUsername, string lpszDomain, string lpszPassword, int dwLogonType,
int dwLogonProvider, ref IntPtr phToken);