在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
[DllImport("advapi32.dll")] } public bool ValidateUserAccount(string AstrDomainName, string AstrDomainAccount, string AstrDomainPassword) const int LOGON32_LOGON_INTERACTIVE = 2; //通过网络验证账户合法性 const int LOGON32_PROVIDER_DEFAULT = 0; //使用默认的Windows 2000/NT NTLM验证方 IntPtr tokenHandle = new IntPtr(0);
string domainName = AstrDomainName; //域 如:officedomain return checkok;
protected void btnSave_Click(object sender, EventArgs e) if (ValidateUserAccount("域用户", txtUserName.Text.Trim(), txtPassWord.Text.Trim()))
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论