TerminateJobObject function kernel32
Terminates all processes currently associated with the job. If the job is nested, this function terminates all processes currently associated with the job and all of its child jobs in the hierarchy.
BOOL TerminateJobObject(
[in] HANDLE hJob,
[in] UINT uExitCode
);
Implementation
int TerminateJobObject(int hJob, int uExitCode) =>
_TerminateJobObject(hJob, uExitCode);