Windows安全登录表单?表单、安全、Windows

2023-09-03 22:43:02 作者:旧人死巷破感情

你知道的Windows Live的真棒看表,要求您cerdentials? Gmail通知程序有太,不知何故。

Do you know the awesome looking form of Windows Live that asks you for your cerdentials? Gmail Notifier has it too, somehow.

有什么办法,我可以调用我的应用程序是这样的?

Is there any way I can invoke something like this in my application?

看哪!

BEHOLD!

我想在一个桌面应用程序使用本地认证该对话框。

I wish to use this dialog for local authentication on a desktop app.

推荐答案

您可以考虑调用 CredUIPromptForWindowsCredentials

从 MSDN :

在CredUIPromptForWindowsCredentials   函数创建并显示   配置对话框,允许   用户提供凭据信息   通过使用任何凭据提供   安装在本地计算机上。

The CredUIPromptForWindowsCredentials function creates and displays a configurable dialog box that allows users to supply credential information by using any credential provider installed on the local computer.

但是,还有更多这比简单地显示在对话框和recieving /作用于输入 - 你最有可能被要求注册系统上的身份验证提供者,在一些其他的事情我不完全胜任与解释任何一个细节!可能会给你一个体面的出发地,但。

But there is more to this than simply displaying the dialog and recieving / acting on input - you'll most likely be required to register an authentication provider on the system, among some other things I'm not entirely competent with explaining in any detail! Might give you a decent starting ground though.

更新:

奥德为我的懒惰补偿和提供的pinvoke.net链接显示定义这在托管环境中使用:

Oded compensated for my laziness and supplied the pinvoke.net link displaying definitions for this to be used in a managed environment:

CredUIPromptForWindowsCredentials PInvoke.NET链接

 
精彩推荐
图片推荐