I am using bare Win32Api.
I need to launch app with elevated permissions and app has no manifest. So, the only way is to use ShellExecuteEx
with runAs
verb. It works, but I need to read process stdout. With CreateProcess
I have STARTUPINFO
which I can use to pipe process stdout.
But ShellExecuteEx
does not have such API.
So, how can I elevate and redirect stdout?