I'm trying to create a process which a wpf application. In Visual Studio debugging mode, it runs perfectly but windows service cant create it with gui.
I'm using CreateProcessAsUser() with WTSQueryUserToken(), DuplicateTokenEx().
But WTSQueryUserToken() return false cause of privilege, and i cant run my app.
I have searched similar problems but i couldnt find a solution for my problem.
Just like my problem before; applications which working with manifest files, you have to disable Run all administrator in Admin Approval Mode.