Windows安全登录表单? [英] Windows Security login form?

查看:180
本文介绍了Windows安全登录表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道的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:

<一个href="http://pinvoke.net/search.aspx?search=CredUIPromptForWindowsCredentials&namespace=%5BAll%5D"相对=nofollow> CredUIPromptForWindowsCredentials PInvoke.NET链接

这篇关于Windows安全登录表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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