Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi everyone. As part of a project I'm doing, I need to progammtically control windows login.

I checked out the link below, which allows one to automatically login to windows given a username and password.
Windows XP Automatic Login Using C# ( C Sharp)

Now if only i could bypass the login screen (as done in the link above), and show my own authentication screen before windows loads.

In short. I need to bypass the windows login screen altogether and show my own authentication system. It could be something as simple as showing my project's windows form with a username and password textbox, along with a login button. What is the simplest way i can achieve this?
Posted

I believe you need to replace the gina.dll file ( written in C++ ) to change the login form to your own.
 
Share this answer
 
Regarding the question "This code is in C++, which I'm not too familiar with. Is there any other way I can do this using either VB.NET or C#?" - not really. The GINA code needs to be very lightweight and have minimal dependencies on other code, especially the CLR or even MFC.
The recommended approach for a GINA replacement is to write it in native code. See http://msdn.microsoft.com/en-us/magazine/cc163803.aspx[^] for more information.
 
Share this answer
 
Comments
Johnny J. 26-May-10 9:54am    
Reason for my vote of 1
Don't push answer to follow up on another answer - post it as a comment to the answer in question

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900