C# Класс ALFA.Shared.CodePatch

This patch encapsulates a code patch.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CodePatch ( IntPtr PatchOffset, IntPtr ReplacementFunction, bool Relative ) : System

Create a code patch to change a function pointer.

CodePatch ( IntPtr PatchOffset, byte Code ) : System

Create a generalized code patch.

Dispose ( ) : void

Dispose the object.

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

Метод Описание
Dispose ( bool Disposing ) : void

Dispose the object.

GetCurrentProcess ( ) : IntPtr
PatchCode ( IntPtr Offset, byte Code ) : byte[]

Install a code patch and return the old code.

WriteProcessMemory ( IntPtr Process, IntPtr BaseAddress, IntPtr Buffer, IntPtr Size, IntPtr &Written ) : Int32

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

CodePatch() публичный метод

Create a code patch to change a function pointer.
public CodePatch ( IntPtr PatchOffset, IntPtr ReplacementFunction, bool Relative ) : System
PatchOffset System.IntPtr Supplies the patch offset.
ReplacementFunction System.IntPtr Supplies the replacement code /// pointer.
Relative bool Supplies true if the patch is relative. ///
Результат System

CodePatch() публичный метод

Create a generalized code patch.
public CodePatch ( IntPtr PatchOffset, byte Code ) : System
PatchOffset System.IntPtr Supplies the patch offset.
Code byte Supplies the new code.
Результат System

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

Dispose the object.
public Dispose ( ) : void
Результат void