Class ThreadInfo
Stores information about the current thread.
Inheritance
System.Object
ThreadInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ERC
Assembly: ERC.Net.dll
Syntax
public class ThreadInfo
Fields
Context32
x86 CPU Register values.
Declaration
public CONTEXT32 Context32
Field Value
Type | Description |
---|---|
CONTEXT32 |
Context64
x64 CPU Register values.
Declaration
public CONTEXT64 Context64
Field Value
Type | Description |
---|---|
CONTEXT64 |
Properties
ThreadHandle
A handle for the current thread.
Declaration
public IntPtr ThreadHandle { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
ThreadID
The ID number of the current thread.
Declaration
public int ThreadID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Get_Context()
Gets the register values of a thread and populates the CONTEXT structs. Should only be used on a suspended thread, results on an active thread are unreliable.
Declaration
public ErcResult<string> Get_Context()
Returns
Type | Description |
---|---|
ErcResult<System.String> | Returns an ErcResult, the return value can be ignored, the object should only be checked for error values |
GetSehChain()
Gets the current SEH chain for the process.
Declaration
public List<IntPtr> GetSehChain()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.IntPtr> | Returns a list of IntPtr containing the SEH chain |
GetTeb()
Gets the Thread environment block of the current thread.
Declaration
public TEB GetTeb()
Returns
Type | Description |
---|---|
TEB | Returns a TEB struct |
ToString()
Gets information specific to the current thread and returns it as a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Returns a string |
Overrides
System.Object.ToString()