Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1019 Bytes

File metadata and controls

53 lines (35 loc) · 1019 Bytes

Home

Function name : AssignProcessToJobObject

Group: Process and Thread - Library: kernel32


Assigns a process to an existing job object.


Code examples:

How to make application automatically close all documents it opened

Declaration:

BOOL AssignProcessToJobObject(
	HANDLE hJob,
	HANDLE hProcess
);
  

FoxPro declaration:

DECLARE INTEGER AssignProcessToJobObject IN kernel32;
	INTEGER hJob,;
	INTEGER hProcess  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

A process can be associated only with a single job.