C# Class Binarysharp.MemoryManagement.Threading.ThreadFactory

Class providing tools for manipulating threads.
Inheritance: IFactory
Mostrar archivo Open project: ZenLulz/MemorySharp

Protected Properties

Property Type Description
MemorySharp MemorySharp

Private Properties

Property Type Description
ThreadFactory System

Public Methods

Method Description
Create ( IntPtr address, bool isStarted = true ) : RemoteThread

Creates a thread that runs in the remote process.

Create ( IntPtr address, dynamic parameter, bool isStarted = true ) : RemoteThread

Creates a thread that runs in the remote process.

CreateAndJoin ( IntPtr address ) : RemoteThread

Creates a thread in the remote process and blocks the calling thread until the thread terminates.

CreateAndJoin ( IntPtr address, dynamic parameter ) : RemoteThread

Creates a thread in the remote process and blocks the calling thread until the thread terminates.

Dispose ( ) : void

Releases all resources used by the ThreadFactory object.

GetThreadById ( int id ) : RemoteThread

Gets a thread by its id in the remote process.

ResumeAll ( ) : void

Resumes all threads.

SuspendAll ( ) : void

Suspends all threads.

this ( int threadId ) : RemoteThread

Gets the thread corresponding to an id.

Private Methods

Method Description
ThreadFactory ( MemorySharp memorySharp ) : System

Initializes a new instance of the ThreadFactory class.

Method Details

Create() public method

Creates a thread that runs in the remote process.
public Create ( IntPtr address, bool isStarted = true ) : RemoteThread
address System.IntPtr /// A pointer to the application-defined function to be executed by the thread and represents /// the starting address of the thread in the remote process. ///
isStarted bool Sets if the thread must be started just after being created.
return RemoteThread

Create() public method

Creates a thread that runs in the remote process.
public Create ( IntPtr address, dynamic parameter, bool isStarted = true ) : RemoteThread
address System.IntPtr /// A pointer to the application-defined function to be executed by the thread and represents /// the starting address of the thread in the remote process. ///
parameter dynamic A variable to be passed to the thread function.
isStarted bool Sets if the thread must be started just after being created.
return RemoteThread

CreateAndJoin() public method

Creates a thread in the remote process and blocks the calling thread until the thread terminates.
public CreateAndJoin ( IntPtr address ) : RemoteThread
address System.IntPtr /// A pointer to the application-defined function to be executed by the thread and represents /// the starting address of the thread in the remote process. ///
return RemoteThread

CreateAndJoin() public method

Creates a thread in the remote process and blocks the calling thread until the thread terminates.
public CreateAndJoin ( IntPtr address, dynamic parameter ) : RemoteThread
address System.IntPtr /// A pointer to the application-defined function to be executed by the thread and represents /// the starting address of the thread in the remote process. ///
parameter dynamic A variable to be passed to the thread function.
return RemoteThread

Dispose() public method

Releases all resources used by the ThreadFactory object.
public Dispose ( ) : void
return void

GetThreadById() public method

Gets a thread by its id in the remote process.
public GetThreadById ( int id ) : RemoteThread
id int The id of the thread.
return RemoteThread

ResumeAll() public method

Resumes all threads.
public ResumeAll ( ) : void
return void

SuspendAll() public method

Suspends all threads.
public SuspendAll ( ) : void
return void

this() public method

Gets the thread corresponding to an id.
public this ( int threadId ) : RemoteThread
threadId int The unique identifier of the thread to get.
return RemoteThread

Property Details

MemorySharp protected_oe property

The reference of the MemorySharp object.
protected MemorySharp MemorySharp
return MemorySharp