Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperOpenProcess Method

Opens an existing local process object.

OpenProcess 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 IntPtr OpenProcess(
	ProcessAccess processAccess,
	bool inheritHandle,
	int processId
)

Parameters

processAccess  ProcessAccess
The access to the process object. This access right is checked against the security descriptor for the process. This parameter can be one or more of the process access rights.
inheritHandle  Boolean
If this value is TRUE, processes created by this process will inherit the handle. Otherwise, the processes do not inherit this handle.
processId  Int32
The identifier of the local process to be opened.

Return Value

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