问题
I am doing a R&D of my project. My project is about detecting a human using proximity sensor and return true or false to my system. If true my windows machine should logon automatically. If false no action should occur.
I can able to get true or false status based on user verification. But now i just want to logon Windows 7 machine automatically..,
I just want to know the procedure of how to do Windows 7 logon programmatically..
Any services can be written to achieve this..? or any suggestion how to proceed this..?
回答1:
Pre-Vista you would use GINA. See Customizing GINA, Part 1 and Customizing GINA, Part 2. Post-Vista (therefore including Windows 7) you must use custom credential providers, see Create Custom Login Experiences With Credential Providers For Windows Vista.
来源:https://stackoverflow.com/questions/16582859/windows-7-logon-programmatically