Windows user login API

I would like to program the login of another Windows user interactively. I created a new Windows user account and would like to switch the system to this account without user interaction.

Could you tell me some API commands or MSDN pages? Thanks

+4
source share
2 answers

Looks Like WTSConnectSession - Right Direction

+1
source

If you are not talking about a terminal server session, you will need LogonUser () if you are logged in as this user or ImpersonateLoggedOnUser () if you want to do something as an already registered user. Both of them can be found in Advapi32.lib.

+1
source

All Articles