简体   繁体   English

在安全桌面上运行托管代码

[英]Run managed code on secure desktop

I am working on creating an application which must interact with the user on the secure desktop (ie locked computer screen), but does not specifically provide authentication. 我正在创建一个必须与安全桌面(即锁定的计算机屏幕)上的用户进行交互的应用程序,但没有专门提供身份验证。 From my research, it seems that the only way to get code running on the secure desktop is to use the Credentials Provider API. 根据我的研究,似乎使代码在安全桌面上运行的唯一方法是使用Credentials Provider API。 However, you can only write a credential provider using native Win32 C++ code, there is no way to use managed .NET code. 但是,您只能使用本机Win32 C ++代码编写凭据提供程序,而无法使用托管的.NET代码。 Does anybody know of a way to get .NET code running on the secure desktop? 有人知道让.NET代码在安全桌面上运行的方法吗? Would it be possible to call a .NET executable from a Win32 credential provider? 是否可以从Win32凭据提供程序中调用.NET可执行文件?

If your program uses the Credentials Provider API, then (by definition) it's providing authentication. 如果您的程序使用凭据提供程序API,则(根据定义)它将提供身份验证。

That being said, if you want to use your .NET code, your best option would be to run it as a service, and communicate with it via a named pipe or some other IPC mechanism. 话虽如此,如果您想使用.NET代码,最好的选择是将其作为服务运行,并通过命名管道或其他IPC机制与之通信。

我最终使用Win32代码创建了一个凭据提供程序,并用它来启动.NET应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM