登录到从.NET应用程序的窗口 [英] Login into windows from .NET application

查看:211
本文介绍了登录到从.NET应用程序的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想这应该是一个窗口服务。给予一定的条件时,就应该执行登录到机器中。

I think it should be a windows service. when given certain conditions it should perform a login into the machine.

本机将在登陆界面检查一个Web服务,以知道谁是用户和密码,应该用它来登录。

The machine will be in the "login screen" checking a webservice to know who is the user and password it should use to login.

可以这样做?我不希望自动登录窗口功能。

Can this be done?, I don't want "automatic login" windows feature.

谢谢!

推荐答案

AFAIK这不能做作为登录/认证通过的 GINA 层(图形界面和身份验证),您有效地试图取代那层用自己的,这会不会是从code中的管理方是可行的。总之,开发替代GINA层的唯一方法就必须从C / C ++端完成,不求速度的原因,但由于所涉及的程序复杂,一个新的GINA子系统将不得不采取兼顾

AFAIK this cannot be done as the login/authentication is done by the GINA layer (Graphical Interface and Authentication), you're effectively trying to replace that layer with your own, which would not be feasible from the managed side of code. In short, the only way to develop a replacement for the GINA layer would have to be done from the C/C++ side, not for reasons of speed, but because of the complexity involved in programming, a new GINA subsystem which would have to take into account of

  • 与WinLogon的交互处理的验证
  • 设置桌面
  • 在加载Explorer作为外壳

从.NET否则它不会做这件事的一个可行的方法。但无论如何,如果你有兴趣与你自己的GINA代替纯C / C ++的方式,看看在这里的 MSDN 杂志,刊登了一篇由基思·布朗,有关你自己的替换GINA,在2005年5月发行。

Doing it from .NET would not be a viable way of doing it. But nonetheless, if you are interested in replacing GINA with your own in pure C/C++ way, have a look here in the MSDN Magazine which published an article by Keith Brown, about replacing GINA with your own, in the May 2005 issue.

编辑:由于 拉迪指出这个,我是不知道的,GINA已取代Vista中/ Windows 7操作系统。现在,我的看法,当然,这个答案已经改变考虑到这一点。因此,总之,要实现你的目标,当然,做这个认证落后,如果愿意的话对早期的Windows版本,即XP(这可能不你的情况,但值得一提)。在Vista / Windows 7中,GINA被替换为内容提供者,这我不知道。但是但是,我发现这个链接到MSDN这个这里 萨尔瓦多 - 对不起,如果我不能回答更多关于它因为这是一个新的给我! :(

Thanks to Ruddy for pointing out this that I was not aware of, GINA has been replaced in Vista/Windows 7. Now, my view and of course this answer has changed to account for this accordingly, in short, to fulfill your goal and of course, to make this authentication backward if so wish for earlier version of Windows, ie XP (This may not be in your case, but worth mentioning). In Vista/Windows 7, GINA is replaced by a 'Content Provider', which I do not know about. But however, I have found this link to the MSDN about this here. Salvador - sorry if I cannot answer more about it as that's a new one to me! :(

希望这会有所帮助, 诚挚的问候, 汤姆。

Hope this helps, Best regards, Tom.

这篇关于登录到从.NET应用程序的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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