简体   繁体   English

Windows安全登录表单?

[英]Windows Security login form?

Do you know the awesome looking form of Windows Live that asks you for your cerdentials? 您是否知道Windows Live的真棒外观会要求您提供相关信息?
Gmail Notifier has it too, somehow. Gmail通知程序也有它,不知何故。

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. 我希望在桌面应用程序上使用此对话框进行本地身份验证。

You could look into calling CredUIPromptForWindowsCredentials : 你可以考虑调用CredUIPromptForWindowsCredentials

From MSDN : 来自MSDN

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. CredUIPromptForWindowsCredentials函数创建并显示一个可配置的对话框,允许用户使用本地计算机上安装的任何凭据提供程序提供凭据信息。

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. 可能会给你一个不错的起点。

UPDATE: 更新:

Oded compensated for my laziness and supplied the pinvoke.net link displaying definitions for this to be used in a managed environment: Oded补偿了我的懒惰并提供了pinvoke.net链接,显示了在托管环境中使用的定义:

CredUIPromptForWindowsCredentials PInvoke.NET Link CredUIPromptForWindowsCredentials PInvoke.NET链接

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

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