 |
TerminateJobObject ..msdn Add comment W32 Constants Translate this page |
 |
 |
Terminates all processes currently associated with the job.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL TerminateJobObject(
HANDLE hJob,
UINT uExitCode
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER TerminateJobObject IN kernel32;
INTEGER hJob,;
LONG uExitCode
|
 |
 |
 |
| Parameters: |
 |
hJob
[in] Handle to the job whose processes will be terminated. The CreateJobObject or OpenJobObject function returns this handle.
uExitCode
[in] Exit code to be used by all processes and threads in the job object. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
| It is not possible for any of the processes associated with the job to postpone or handle the termination. It is as if TerminateProcess were called for each process associated with the job. |
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2005-07-28 18:46:11 | | Modified: | 2005-07-28 18:48:02 | Visited in last 7 days: 10 |