C# Класс Binarysharp.MemoryManagement.Threading.ThreadFactory

Class providing tools for manipulating threads.
Наследование: IFactory
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
MemorySharp MemorySharp

Private Properties

Свойство Тип Описание
ThreadFactory System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ThreadFactory ( MemorySharp memorySharp ) : System

Initializes a new instance of the ThreadFactory class.

Описание методов

Create() публичный Метод

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.
Результат RemoteThread

Create() публичный Метод

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.
Результат RemoteThread

CreateAndJoin() публичный Метод

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. ///
Результат RemoteThread

CreateAndJoin() публичный Метод

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.
Результат RemoteThread

Dispose() публичный Метод

Releases all resources used by the ThreadFactory object.
public Dispose ( ) : void
Результат void

GetThreadById() публичный Метод

Gets a thread by its id in the remote process.
public GetThreadById ( int id ) : RemoteThread
id int The id of the thread.
Результат RemoteThread

ResumeAll() публичный Метод

Resumes all threads.
public ResumeAll ( ) : void
Результат void

SuspendAll() публичный Метод

Suspends all threads.
public SuspendAll ( ) : void
Результат void

this() публичный Метод

Gets the thread corresponding to an id.
public this ( int threadId ) : RemoteThread
threadId int The unique identifier of the thread to get.
Результат RemoteThread

Описание свойств

MemorySharp защищенное свойство

The reference of the MemorySharp object.
protected MemorySharp MemorySharp
Результат MemorySharp