Terminates all processes currently associated with the job
#include <WinAPIProc.au3>
_WinAPI_TerminateJobObject ( $hJob [, $iExitCode = 0] )
$hJob | A handle to the job whose processes will be terminated. This handle must have the $JOB_OBJECT_TERMINATE access right. Furthermore, the handle for each process in the job object must have the $PROCESS_TERMINATE access right. |
$iExitCode | [optional] The exit code to be used by all processes and threads in the job object. |
Success: | True |
Failure: | False |
If the job is nested, the function terminates all processes currently associated with the job and all of its
child jobs in the hierarchy.
Search TerminateJobObject in MSDN Library.