Group: Process and Thread - Library: kernel32
How to make application automatically close all documents it opened
BOOL AssignProcessToJobObject(
HANDLE hJob,
HANDLE hProcess
);
DECLARE INTEGER AssignProcessToJobObject IN kernel32;
INTEGER hJob,;
INTEGER hProcess hJob [in] Handle to the job object to which the process will be associated.
hProcess [in] Handle to the process to associate with the job object.
If the function succeeds, the return value is nonzero.
A process can be associated only with a single job.
Home