C# Class AcManager.Tools.Helpers.ChildProcessTracker

Show file Open project: gro-ove/actools

Public Methods

Method Description
AddProcess ( Process process ) : void

Add the process to be tracked. If our current process is killed, the child processes that we are tracking will be automatically killed, too. If the child process terminates first, that's fine, too.

Private Methods

Method Description
AssignProcessToJobObject ( IntPtr job, IntPtr process ) : bool
ChildProcessTracker ( ) : System
CreateJobObject ( IntPtr lpJobAttributes, string name ) : IntPtr
SetInformationJobObject ( IntPtr job, JobObjectInfoType infoType, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength ) : bool

Method Details

AddProcess() public static method

Add the process to be tracked. If our current process is killed, the child processes that we are tracking will be automatically killed, too. If the child process terminates first, that's fine, too.
public static AddProcess ( Process process ) : void
process System.Diagnostics.Process
return void