Create an interactive logon session

 ̄綄美尐妖づ 提交于 2019-11-30 13:47:01

I solved this in XP by calling the undocumented InitiateInteractiveLogon function in the ShellLocalMachine COM object in shgina.dll.

This method, which can only be called by the Local System account, will log a user on to the console. (It cannot log a user on to an RDP session)

The version of the DLL included with Windows 7 (and presumably also Vista) does not contain this method.

Which Windows versions you want to target?

I believe that there is no simple way. For Windows XP there is GINA. For Windows Vista, there is 'Credential Providers'.

Also, if you are targeting Windows XP, you can create service, that sends keystrokes to WinLogon desktop to log in as if user pressed them on keyboard. This was done by RealVNC or UltraVNC, I don't remember. However, this approach does not work in Windows Vista.

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