最近看到一个程序里的代码在关闭单个进程的时候使用了
CreateJobObject();
AssignProcessToJobObject();
TerminateJobObject();
的方式,想知道这种方式关闭进程和TerminateProcess()有什么区别吗?
CreateJobObject();
AssignProcessToJobObject();
TerminateJobObject();
的方式,想知道这种方式关闭进程和TerminateProcess()有什么区别吗?
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.