Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperIsProcessInJob Method

Determines whether the process is running in the specified job.

IsProcessInJob function


Namespace: Xcalibur.NativeMethods.V2.Processes
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("kernel32.dll")]
public static bool IsProcessInJob(
	IntPtr processHandle,
	IntPtr jobHandle,
	out bool result
)

Parameters

processHandle  IntPtr
A handle to the process to be tested. The handle must have the or access right.
jobHandle  IntPtr
A handle to the job. If this parameter is NULL, the function tests if the process is running under any job.
result  Boolean
A pointer to a value that receives TRUE if the process is running in the job, and FALSE otherwise.

Return Value

Boolean
If the function fails, the return value is zero. To get extended error information, call .
See Also