Windows7 凭据提供程序在硬件事件上自动登录用户 [英] Windows7 credential provider to automatically logon user on the hardware event

查看:25
本文介绍了Windows7 凭据提供程序在硬件事件上自动登录用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 Windows 7 开发自定义凭据提供程序.我的目标是在发生特定硬件事件时自动登录用户.我已经阅读了所有与此相关的 MSDN 文章,并实现了一个简单的凭据提供程序,该凭据提供程序与外部设备连接以获取用户名和密码并将其传递给 WinLogon.

I am developing a custom credential provider for Windows 7. My goal is to automatically log-in the user when a certain hardware event occurs. I have read all the MSDN articles related to this, and implemented a simple credential provider that interfaces with the external device to get user name and password and passes it to the WinLogon.

但是,我仍然被最后一块拼图困住了.目前,用户仍然需要按下登录按钮才能登录.自动登录的最佳方法是什么?

But, I still am stuck with the last piece of the puzzle. Currently the user still has to press the logon button to log himself in. What is the best way to do that automatically?

推荐答案

目前我也在做同样的事情,我认为

Currently I'm working on the same and I think that

a) 在 Provider::GetCredentialCount 函数中,设置 pdwDefault 并将 pbAutoLogonWithDefault 设置为 true

b) 在 Credential::SetSelected 中,您将 pbAutoLogon 设置为 true.

a) in function Provider::GetCredentialCount, you set a pdwDefault and set pbAutoLogonWithDefault to true
or
b) in Credential::SetSelected you set pbAutoLogon to true.

对于 a) 用户别无选择,对于 b) 他必须先选择帐户.

With a) the user has no choice and with b) he has to choose the account first.

这篇关于Windows7 凭据提供程序在硬件事件上自动登录用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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