TerminateJobObject function kernel32

int TerminateJobObject(
  1. int hJob,
  2. int uExitCode
)

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);