如何以编程方式控制Windows登录? [英] how do I programmatically control windows login?

查看:115
本文介绍了如何以编程方式控制Windows登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.作为我正在做的项目的一部分,我需要以编程方式控制Windows登录.

我检查了下面的链接,该链接允许在具有用户名和密码的情况下自动登录Windows.
使用C#(C Sharp)Windows XP自动登录

现在,只要我能绕过登录屏幕(如上面的链接中所述),并在Windows加载之前显示我自己的身份验证屏幕.

简而言之.我需要完全绕开Windows登录屏幕,并显示自己的身份验证系统.可能就像显示项目的Windows窗体,用户名和密码文本框以及一个登录按钮一样简单.我最简单的方法是什么?

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?

推荐答案

我相信您需要替换gina.dll文件(用C ++编写)才能将登录表单更改为您的
I believe you need to replace the gina.dll file ( written in C++ ) to change the login form to your own.


关于此代码是C ++,我不太熟悉."是否还有其他方法可以使用VB.NET或C#来实现? " - 并不真地. GINA代码必须非常轻巧,并且对其他代码(尤其是CLR甚至是MFC)的依赖性最小.
推荐的替代GINA的方法是用本机代码编写它.请参阅 http://msdn.microsoft.com/en-us/magazine/cc163803.aspx [ ^ ]以获得更多信息.
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.


这篇关于如何以编程方式控制Windows登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆