I'm trying to start a process as a different user. This process starts a pdf converter, with session id equal to 0. It has a problem.. it stops randomly! Maybe because of some calculation or a Gui problem of this converter? We can't even change that program. So, I tought it can be caused by the isolation of the session id running with 0. I have a service running in Windows 7. In Windows 7 all services run in Session 0. From that service I want to create an interactive user session (in a session other than Session 0) and start an application in that session. My problem is that when I call LogonUser to start an interactive user session and then use CreateProcessAsUser to start the application the application ends up running in Session 0.
For this reason I'm trying to do this solution. The condition is that it must starts with session id not equal to 0, running in a scheduler.