问题
As for personal fun and challenge, I wanted to add a way to login on my own personal computers. All are currently using Windows 7.
Normally this would use ICredentialProvider or something like that. Basically the goal here is to have 2 way to login, the normal user/password one and the alternative (mine) with a Yubikey.
Is there any where I could look to find some resources on how to achieve this using C# ?
回答1:
There is an article about implementing a custom Credential Provider here, and there is some samples here. However, I do believe you need to implement a custom Credential Provider in native code, which would typically mean C/C++. The examples are in C.
You should probably do some googling before undertaking the task. Do be aware that GINA is the old Windows login mechanism, and has been removed from Windows since Vista (so you can ignore articles about that).
来源:https://stackoverflow.com/questions/3549605/add-winlogon-login-method-using-c-sharp-and-yubikey