Function Reference


_WinAPI_OpenJobObject

Opens an existing job object

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

Parameters

$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.
$JOB_OBJECT_ALL_ACCESS
$JOB_OBJECT_ASSIGN_PROCESS
$JOB_OBJECT_QUERY
$JOB_OBJECT_SET_ATTRIBUTES
$JOB_OBJECT_SET_SECURITY_ATTRIBUTES
$JOB_OBJECT_TERMINATE
$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.