CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
IBM Rational 系统开发最佳实践工具包 WebSphere MQ 最佳实践 TOP 15
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  VB.NET

求域用户登陆验证

楼主leonnet(里奥下的天空)2006-03-15 17:00:22 在 .NET技术 / VB.NET 提问

偶听说可以通过调用advapi32.dll来获得域用户的验证,比如读出用户登陆域后的用户显示在textbox1中,在textbox2中输入密码后进入程序,但没搞过,请高手们指教,谢谢. 问题点数:30、回复次数:4Top

1 楼copico(北北)回复于 2006-03-16 12:05:59 得分 0

帮你顶下Top

2 楼leonnet(里奥下的天空)回复于 2006-03-16 12:47:59 得分 0

高手些详解呀,急用Top

3 楼Snrmnm_sx(Ψ 踏雪无痕 Ω)回复于 2006-03-16 13:19:29 得分 30

Imports   System  
  Imports   System.Drawing  
  Imports   System.Windows.Forms  
   
  Public   NotInheritable   Class   Form1  
          Inherits   System.Windows.Forms.Form  
   
          Friend   WithEvents   BtnGetScreenInfo   As   System.Windows.Forms.Button  
          Friend   WithEvents   ListBox1   As   System.Windows.Forms.ListBox  
   
          <System.STAThread()>   _  
          Public   Shared   Sub   Main()  
                  System.Windows.Forms.Application.Run(New   Form1())  
          End   Sub   'Main  
   
          Public   Sub   New()  
                  MyBase.New()  
   
                  Me.BtnGetScreenInfo   =   New   System.Windows.Forms.Button  
                  Me.ListBox1   =   New   System.Windows.Forms.ListBox  
   
                  '   Get   System   Information   Button  
                  Me.BtnGetScreenInfo.Location   =   New   System.Drawing.Point(16,   16)  
                  Me.BtnGetScreenInfo.Size   =   New   System.Drawing.Size(256,   48)  
                  Me.BtnGetScreenInfo.TabIndex   =   0  
                  Me.BtnGetScreenInfo.Text   =   "Get   System   Information"  
   
                  '   System   Information   ListBox  
                  Me.ListBox1.Location   =   New   System.Drawing.Point(16,   72)  
                  Me.ListBox1.Size   =   New   System.Drawing.Size(256,   186)  
                  Me.ListBox1.TabIndex   =   1  
   
                  '   Form1  
                  Me.ClientSize   =   New   System.Drawing.Size(292,   317)  
                  Me.Controls.AddRange(New   System.Windows.Forms.Control()   {Me.ListBox1,   Me.BtnGetScreenInfo})  
                  Me.Text   =   "System   Information   Example"  
   
          End   Sub  
   
          Private   Sub   Button1_Click(ByVal   sender   As   System.Object,   ByVal   e   As   System.EventArgs)   Handles   BtnGetScreenInfo.Click  
                  '   Get   System   Information   for   the   current   machine.  
                  ListBox1.Items.Add("ComputerName   :   "   +   SystemInformation.ComputerName)  
                  ListBox1.Items.Add("Network     :   "   +   SystemInformation.Network.ToString())  
                  ListBox1.Items.Add("UserDomainName     :   "   +   SystemInformation.UserDomainName)  
                  ListBox1.Items.Add("UserName       :   "   +   SystemInformation.UserName)  
                  ListBox1.Items.Add("BootMode   :   "   +   SystemInformation.BootMode.ToString())  
                  ListBox1.Items.Add("MenuFont   :   "   +   SystemInformation.MenuFont.ToString())  
                  ListBox1.Items.Add("MonitorCount   :   "   +   SystemInformation.MonitorCount.ToString())  
                  ListBox1.Items.Add("MonitorsSameDisplayFormat   :   "   +   SystemInformation.MonitorsSameDisplayFormat.ToString())  
                  ListBox1.Items.Add("ArrangeDirection:   "   +   SystemInformation.ArrangeDirection.ToString())  
                  ListBox1.Items.Add("MousePresent   :   "   +   SystemInformation.MousePresent.ToString())  
                  ListBox1.Items.Add("MouseButtonsSwapped         :   "   +   SystemInformation.MouseButtonsSwapped.ToString())  
                  ListBox1.Items.Add("UserInteractive         :   "   +   SystemInformation.UserInteractive.ToString())  
                  ListBox1.Items.Add("VirtualScreen:   "   +   SystemInformation.VirtualScreen.ToString())  
          End   Sub  
  End   Class  
  Top

4 楼leonnet(里奥下的天空)回复于 2006-03-16 13:55:35 得分 0

楼上的兄弟,还是不能实现偶想要的功能呀Top

相关问题

  • 域用户验证
  • 如何实现用户登陆验证?
  • 当一个MIS系统使用域验证时,如何实现不同的用户登陆?
  • 如何绕过网络用户登陆验证?
  • 用户登陆验证问题,cookie还是session?
  • jsp中验证用户登陆信息的问题
  • 求助:用户登陆界面设计与验证技术
  • 如何编写存储过程来进行用户登陆验证及用户操作验证
  • 用户登陆验证问题:中文的用户名验证总是密码错误
  • 有谁能给我一个用户身份验证的登陆框的框架!

关键词

  • me
  • 用户
  • btngetscreeninfo
  • listbox
  • drawing
  • sub
  • forms
  • button
  • size
  • information

得分解答快速导航

  • 帖主:leonnet
  • Snrmnm_sx

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo