User and Password Login using Windows Local Users and Passwords

I clearly am not sure as to what I am doing.  

I would like the Login form User and Password for my VB.NET 2005 application to be the same as the local XP workstations User and Password.  I am not sure exactly how to apply what I've read as most of the examples are for networked systems.

What are my options?

What do I do within the ok_click event?

Thank you in advance!
jafinch3700Asked:
Who is Participating?
 
vb_jonasConnect With a Mentor Commented:
Hi, did you did try the LogonUser-function? It's for local computer logon. http://support.microsoft.com/kb/841699
0
 
dengiaCommented:
Hi,
I'm not sure I understand what you need. When you open Login form, you want current user name (as you are logged in Win XP) is in your text box for user name? Or you want to open Login form which is exactly the same as Win XP login form is?
0
 
jafinch3700Author Commented:
Dengia, I think vb_jonas asnwered my questions as I was not sure what approach to take as most examples I read used AD and LDAP.   The Win32 API looks like a new route that I breifly read about in an older VB6 book I have.

I still need to test and see if the solution is functional.  

Since, you asked, how would you go about opening the Win XP login form and using for another application?  Also, how does the Win XP login form validate username and login?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
jafinch3700Author Commented:
Hi and Thank you both for your responses by the way!

Would anyone know of a good example of a flow chart that shows the different ways users are validated on 2000/XP/Vista systems?

Thanks again!
0
 
dengiaCommented:
Hi, yes I asked if you need to open Win XP login form, but I really don't know how to open it and use it in another application. I guess it validates username/pwd nearly the same way as it is shown in link vb_jonas gave you.
0
 
jafinch3700Author Commented:
Great job vb_jonas.  Exciting to see this work.
Seems like you would want to have cases or if-then-else routines with the local (Win32 API) and network (AD, LDAP,etc) validation routines for added flexibility to allow an application to use local or network authentication.  
Thank you very much!
0
 
vb_jonasCommented:
Great, thanks!
0
All Courses

From novice to tech pro — start learning today.