Function Reference


Opens an existing job object

#include <WinAPIProc.au3>
_WinAPI_OpenJobObject ( $sName [, $iAccess = $JOB_OBJECT_ALL_ACCESS [, $bInherit = False]] )


$sName The name of the job to be opened. Name comparisons are case sensitive.
$iAccess [optional] The access to the job object. This parameter can be one or more of the following values.
$bInherit [optional] Specifies whether inherites the handle by a processes, valid values:
True - The processes created by this process will inherit the handle.
False - The processes do not inherit this handle (Default).

Return Value

Success: Handle to the job object.
Failure: 0, call _WinAPI_GetLastError() to get extended error information.

See Also

Search OpenJobObject in MSDN Library.