Run app from a service using CreateProcessAsUser

I'm still trying to run an app calling it from windows service. I tried to use the way described by Scott Allen. It works. But still I can't bring the app to the screen to interact with it. Help me pls.

Even if I'm telling it to run the service using my credentials it doesn't bring the app on my desktop. tell me please how to get the current logged user's desktop token and run the app on that desktop.

Answers


Are you setting STARTUPINFO.lpDesktop to something like "winsta0\default" ?


Need Your Help

Linq group by date when using multiple group by fields

c# sql linq entity-framework

Since linq does not allow you to use the Date() method inside a linq query, I read about using DbFunctions.TruncateTime, which works fine until you try using it inside an anonymous type which is wh...

openpyxl for Python 3 gives StringIO error

python python-3.x openpyxl

When I try to load a workbook in Python 3.3 using openpyxl, I get a "No module named 'StringIO'" error: