The MSDN page in job objects explains:
A process can only be associated with one task. Work cannot be nested. Job posting capabilities have been added to the Windows 8 Consumer Preview and beta version of Windows Server 8.
Unfortunately, it seems that this is exactly what I need. I deal with a process tree as follows:
server.exe
|
+
|
+
| |
| +
| |
| +
|
+
|
+
I am trying to implement the following behavior:
If server.exeit somehow ends (because it is crashing or because the user decides to stop it using the task manager or simply because it finishes executing), it removes all the processes under it. I use the job object for this.
launcherA.exe launchedB.exe - , . , , .
, "" , . , , , - , , - , .