Windows 7 Logon Programmatically

≡放荡痞女 提交于 2019-12-13 04:59:19

问题


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

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