Funktionreferenz


_WinAPI_TerminateJobObject


Terminates all processes currently associated with the job

#include <WinAPIProc.au3>
_WinAPI_TerminateJobObject ( $hJob [, $iExitCode = 0] )

Parameter

$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.

Rückgabewert

Success: True
Failure: False

Bemerkungen

If the job is nested, the function terminates all processes currently associated with the job and all of its
child jobs in the hierarchy.

Siehe auch

Suche nach TerminateJobObject in der MSDN Bibliothek.