How are you obtaining the token you are passing to CreateProcessAsUser?
The token that you pass to CreateProcessAsUser must contain the proper session number. The session can be set with SetTokenInformation.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I had develop windows file watcher service to launch UI (as user give file print from menu) using createuserprocess winapi. It works fine for single user. For multi user this UI get launch in wrong user's session.
So I need launch UI in respective user's session
Any help appreciated
How are you obtaining the token you are passing to CreateProcessAsUser?
The token that you pass to CreateProcessAsUser must contain the proper session number. The session can be set with SetTokenInformation.
Thanks for reply.
I use winapi method WTSQuerySessionInformation to get session id. But it all sessionids currently connected users.
I need sessionid of user who fire command to launch UI app.