[API Proposal]: Expose Win32 CreateProcess flags to ProcessStartInfo #90581
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.Diagnostics.Process
Background and motivation
Currently I use
ProcessStartInfo/Process.Start
to launch processes with overridden environment variables, redirect standard input and output, and so forth.I now need to use the
CREATE_SUSPENDED
flag so that I can modify the process after it's created and before it starts actual execution, but there's no way to pass this flag intoProcessStartInfo/Process.Start
. Given that I still need to use all the other features of ProcessStartInfo, the only reasonable path I can see forward is to either copy or reimplement the entirety of the System.Diagnostics.Process code, just so I can pass this one flag down to the operating system, which is really less than ideal.API Proposal
This probably isn't very good API design, but just some way of passing in the Win32 process creation flags is needed.
API Usage
Alternative Designs
No response
Risks
No response
The text was updated successfully, but these errors were encountered: