如何以编程方式控制Windows登录?

编程入门 行业动态 更新时间:2024-10-28 18:24:33
本文介绍了如何以编程方式控制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的方法是用本机代码编写它.请参阅 msdn.microsoft/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 msdn.microsoft/en-us/magazine/cc163803.aspx[^] for more information.

更多推荐

如何以编程方式控制Windows登录?

本文发布于:2023-11-03 13:38:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555256.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方式   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!