I need to use Win32 job objects to corral a bunch of child processes.
First problem is that there is no concept of jobs in the BCL. Strike 1. Why not
Ok - not that big a deal - the stuff I want to do isn't that hard to pinvoke a bunch on - mostly just IntPtr handles anyway.
Second problem is that there is no way using the Process class to create a child process in a suspended state so that the handle is valid, but it isn't running yet. Strike 2.
What a mess - the existing code I have to modify heavily uses the Process class. and that little addition to the ProcessStartInfo of a bool CreateSuspended would have been so handy.
Argggh.
.NET Development13
|