为 Windows 7 构建自定义凭据提供程序
在查看了为 Windows 7 构建自定义凭据提供程序的代码后,我设法让自己的磁贴显示在登录屏幕上,并且可以作为所需用户登录。但是,我正在尝试实现一个系统,其中事件(范围内的蓝牙设备)触发登录/解锁,而无需单击磁贴。
我可以将其设置为自动填写密码(也许我会从设备中提取密码),但无论哪种方式,我都必须先单击该图块。如果它被锁定,我还需要在此之前单击“其他凭据”。
我将如何实现登录凭据提供程序而不在登录屏幕上显示磁贴?如果我可以集中关注现有的密码选项,并在设备进入范围时绕过它,那就太好了。
编辑:我取得了一些进展,但我仍然认为我需要在没有图块的情况下执行此操作。如果我将 *pbAutoLogon 参数设置为 true
,并在此之前填写用户名和密码,则会出现以下行为:
如果选择了默认凭据 (锁定/解锁),然后我需要单击“其他凭据”。如果我注销,默认情况下会显示两个凭据。
如果两个凭据都显示,并且我的提供程序在之后启用,则登录是自动的。
如果首先启用我的提供程序,然后选择“其他凭据”,我仍然需要单击我的提供程序,然后自动登录
After looking through the code for building custom credential providers for Windows 7, I managed to get my own tile to show up on the logon screen, and can logon as the desired user. However, I am trying to implement a system where an event (a Bluetooth device in range) triggers a logon/unlock, without needing to click on the tile.
I can set it to fill in the password automatically (maybe I will implement pulling the password from the device), but either way, I must click the tile first. If it is locked, I need to click "Other Credentials" before that, too.
How would I go about implementing the logon credential provider without displaying a tile on the logon screen? It would be nice if I could keep the existing password option focused, and bypass it the moment the device comes in range.
EDIT: I made some progress, but I still think I need to do this without a tile. If I set the *pbAutoLogon
parameter to true
, and fill in the username and password before that, then the following behavior occurs:
If the default credential is selected (lock/unlock), then I need to click on "other credentials". If I log off, both credentials are displayed by default.
If both credentials are shown, and my provider is enabled after that, then the logon is automatic.
If my provider is enabled first, then "other credentials" is selected, I still need to click on my provider, after which logon is automatic
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要更改凭据设置以自动登录,然后您的提供商需要告诉 LoginUI 凭据已更改。
微软提供的示例凭据提供程序之一就是以这种方式工作的。
You need to change your credential settings to log in automatically and then your provider needs to tell LoginUI that the credentials have changed.
One of the sample credential providers supplied by microsoft works in this way.