Building a custom credential provider for Windows 7

旧街凉风 提交于 2019-12-09 06:54:36

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/5803321/building-a-custom-credential-provider-for-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!