C# Class Binarysharp.MemoryManagement.Threading.ThreadFactory

Class providing tools for manipulating threads.
Inheritance: IFactory
Afficher le fichier Open project: ZenLulz/MemorySharp

Protected Properties

Свойство Type Description
MemorySharp MemorySharp

Private Properties

Свойство Type Description
ThreadFactory System

Méthodes publiques

Méthode 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

Méthode Description
ThreadFactory ( MemorySharp memorySharp ) : System

Initializes a new instance of the ThreadFactory class.

Method Details

Create() public méthode

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.
Résultat RemoteThread

Create() public méthode

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.
Résultat RemoteThread

CreateAndJoin() public méthode

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. ///
Résultat RemoteThread

CreateAndJoin() public méthode

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.
Résultat RemoteThread

Dispose() public méthode

Releases all resources used by the ThreadFactory object.
public Dispose ( ) : void
Résultat void

GetThreadById() public méthode

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

ResumeAll() public méthode

Resumes all threads.
public ResumeAll ( ) : void
Résultat void

SuspendAll() public méthode

Suspends all threads.
public SuspendAll ( ) : void
Résultat void

this() public méthode

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

Property Details

MemorySharp protected_oe property

The reference of the MemorySharp object.
protected MemorySharp MemorySharp
Résultat MemorySharp