Is it possible to create a service or application which can programmatically log a user in when windows(vista/win7) starts up.... if a user has a token eg biometrics or smartcard
Justin Grant
Yep, it's possible. In older (XP and before) windows, this facility was called a GINA. In Vista and Win 7, the architecture is changed... you need to build a Credential Provider. The previous link is to an overview article, here's a link to some samples.
Kudos to Login to windows xp programatically for providing most of the answers here! ;-)
来源:https://stackoverflow.com/questions/1493311/windows-vista-7-programmatically-login