本文介绍了一个GINA替换在.NET语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经寻找了很多地方,我只找到了一个GINA替换名为pGINA但它是在C ++中,我不知道的。

I have searched quite a lot of places and I only found one GINA replacement called pGINA but it is in C++ which I don't know at all.

有谁认识一个在C#或者VB.NET?

(我写的软件在工作中使用来控制哪些员工在做什么)

(I'm writing software for use at work to control what employees are doing)

推荐答案

Winlogon中(其中加载GINA DLL)的托管.NET可能不是这么热idea-可能会导致各种各样的冲突,如果别的事情决定做同样的事情,如果你垃圾winlogon的,你没有得到与PC的任何地方。此外,GINA被替换成Vista的使用ICredentialProvider(见这里) - 让您的投资将很快丢失,你移动到一个新的操作系统。即使在那里,同样的道理也适用:自定义凭据提供加载到Winlogon中,因此可能不是一个好主意使用.NET那里。

Hosting .NET in Winlogon (where GINA dlls are loaded) is probably not such a hot idea- could cause all sorts of conflicts if something else decides to do the same thing, and if you trash winlogon, you're not getting anywhere with that PC. Also, GINA has been replaced as of Vista with ICredentialProvider (see here)- so your investment would be lost as soon as you move to a newer OS. Even there, the same thing applies: custom credential providers are loaded into Winlogon, so probably not a great idea to use .NET there.

无论如何,这两个旨在支持自定义验证模块,而不是控制哪些员工在做什么。有对登录桌面上运行的软件等方式,如果这就是你想要做什么。

Regardless, both of these are intended to support custom authentication modules, not "controlling what employees are doing". There are other ways to run software on the logon desktops, if that's what you're trying to do.

所有这一切说,如果你还是想尝试一下,你需要一个非托管垫片的DLL,C ++ / CLI或有的IL黑客(见的)导出的GINA的功能,因为C#不能直接导出DLL函数。纯托管C#的解决方案是不可能的。

All that said, if you still want to try it, you'll need an unmanaged shim DLL, C++/CLI or some IL hacking (see here) to export the GINA functions because C# can't directly export DLL functions. A pure managed C# solution isn't possible.

这篇关于一个GINA替换在.NET语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 07:25