Create an interactive logon session

前端 未结 2 601
情歌与酒
情歌与酒 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: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.

提交回复
热议问题