c# Programming Glossary: jobobject_basic_limit_information
Kill child process when parent process is killed http://stackoverflow.com/questions/3342941/kill-child-process-when-parent-process-is-killed bInheritHandle StructLayout LayoutKind.Sequential struct JOBOBJECT_BASIC_LIMIT_INFORMATION public Int64 PerProcessUserTimeLimit public Int64 PerJobUserTimeLimit.. struct JOBOBJECT_EXTENDED_LIMIT_INFORMATION public JOBOBJECT_BASIC_LIMIT_INFORMATION BasicLimitInformation public IO_COUNTERS IoInfo public UInt32.. false public Job m_handle CreateJobObject null null JOBOBJECT_BASIC_LIMIT_INFORMATION info new JOBOBJECT_BASIC_LIMIT_INFORMATION info.LimitFlags 0x2000..
Working example of CreateJobObject/SetInformationJobObject pinvoke in .net? http://stackoverflow.com/questions/6266820/working-example-of-createjobobject-setinformationjobobject-pinvoke-in-net together the following code. I think the definition of JOBOBJECT_BASIC_LIMIT_INFORMATION changes based on platform 32 64 bit . The CreateJobObject AssignProcessToJobObject.. .Handle Ensure that killing one process kills the others JOBOBJECT_BASIC_LIMIT_INFORMATION limits new JOBOBJECT_BASIC_LIMIT_INFORMATION limits.LimitFlags.. the others JOBOBJECT_BASIC_LIMIT_INFORMATION limits new JOBOBJECT_BASIC_LIMIT_INFORMATION limits.LimitFlags short LimitFlags.JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE..
|