Replies: 1 comment
-
There is a general trend of people needing more control over process creation. Related issues: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In 2018 Windows released Windows Pseudo Console (ConPTY) and I am looking for ways to integrate it into some of my subprocesses.
I quickly find out that:
PROCESS_ALL_ACCESS
handle into aProcess
object, if I were to occupy the handle byCreateProcess
on my own. The only way I can do it right now is to firstly convert the handle to a PID, then use theGetProcessById
to create theProcess
object. In this process it involvesOpenProcess
withPROCESS_ALL_ACCESS
which in turn requiresSeDebugPrivilege
. This is bad and error-prone.STARTUPINFOEX
and put something inside, instead ofSTARTUPINFO
, but nevertheless even theSTARTUPINFO
is beyond my control.To implement it I end up cloning the entire
Process.Start()
flow to make the modification, though I don't really have much idea on how to make it better.Beta Was this translation helpful? Give feedback.
All reactions