Create an interactive logon session

前端 未结 2 600
情歌与酒
情歌与酒 2021-01-02 13:32

I\'m trying to create a utility similar to Microsoft\'s abandoned Super Fast User Switcher (download), which allows fast user switching without going through the Welcome scr

相关标签:
2条回答
  • 2021-01-02 13:53

    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.

    0 讨论(0)
  • 2021-01-02 13:56

    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.

    0 讨论(0)
提交回复
热议问题