![Xcalibur Systems LLC Logo](../icons/logo.png) |
ProcessHelperOpenThread Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: 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
)
<DllImportAttribute("kernel32.dll">]
Public Shared Function OpenThread (
threadAccess As ThreadAccess,
inheritHandle As Boolean,
threadId As UInteger
) As IntPtr
public:
[DllImportAttribute(L"kernel32.dll")]
static IntPtr OpenThread(
ThreadAccess threadAccess,
bool inheritHandle,
unsigned int threadId
)
[<DllImportAttribute("kernel32.dll")>]
static member OpenThread :
threadAccess : ThreadAccess *
inheritHandle : bool *
threadId : uint32 -> IntPtr
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
IntPtrIf the function fails, the return value is NULL. To get extended error information,
call .
See Also