Change Theme Session ID

How can I start a thread in another session? I need to start a thread in an interactive session (session 1) from a service in a non-interactive session (session 0). I did this using a process before using SetTokenInFormation and DuplicateTokenEx, and then passed this to CreateProcessAsUser. I was hoping I could do the same except using SetThreadToken instead of CreateProcessAsUser.

+3
source share
1 answer

Topics are not related to sessions; processes are running. You will need to create a process in another session to accommodate the thread you need.

+2
source

Source: https://habr.com/ru/post/1728988/


All Articles