Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperOpenThread Method

Opens an existing thread object.

OpenThread 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 OpenThread(
	ThreadAccess threadAccess,
	bool inheritHandle,
	uint threadId
)

Parameters

threadAccess  ThreadAccess
The access to the thread object. This access right is checked against the security descriptor for the thread. This parameter can be one or more of the thread 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.
threadId  UInt32
The identifier of the thread to be opened.

Return Value

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