C# Класс Memory.Mem

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
modules IntPtr>.Dictionary
pHandle System.IntPtr
procs Process

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

Метод Описание
AoBScan ( uint min, int length, string code, string file = "" ) : IntPtr
CutString ( string str ) : string
InjectDLL ( String strDLLName ) : void
LoadCode ( string name, string file ) : string
OpenGameProcess ( int procID ) : bool
ThreadStartClient ( string func ) : void
closeProcess ( ) : void
getModules ( ) : void
getProcIDFromName ( string name ) : int
read2Byte ( string code, string file = "" ) : int
read2ByteMove ( string code, int moveQty, string file = "" ) : int
readByte ( string code, string file = "" ) : int
readFloat ( string code, string file = "" ) : float
readInt ( string code, string file = "" ) : int
readIntMove ( string code, int moveQty, string file = "" ) : int
readPByte ( UIntPtr address, string code, string file = "" ) : int
readPFloat ( UIntPtr address, string code, string file = "" ) : float
readPInt ( UIntPtr address, string code, string file = "" ) : int
readPString ( UIntPtr address, string code, string file = "" ) : string
readString ( string code, string file = "" ) : string
readUInt ( string code, string file = "" ) : uint
readUIntMove ( string code, string file, int moveQty ) : ulong
readUIntPtr ( UIntPtr code ) : int
sanitizeString ( string str ) : string
setFocus ( ) : void
writeByte ( UIntPtr code, byte write, int size ) : void
writeMemory ( string code, string type, string write, string file = "" ) : bool
writeMove ( string code, string type, string write, int moveQty, string file = "" ) : bool
writeUIntPtr ( string code, byte write, string file = "" ) : void

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

Метод Описание
CloseHandle ( IntPtr hObject ) : Int32
CreateRemoteThread ( IntPtr hProcess, IntPtr lpThreadAttributes, uint dwStackSize, UIntPtr lpStartAddress, IntPtr lpParameter, uint dwCreationFlags, IntPtr &lpThreadId ) : IntPtr
GetModuleHandle ( string lpModuleName ) : IntPtr
GetPrivateProfileString ( string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, uint nSize, string lpFileName ) : uint
GetProcAddress ( IntPtr hModule, string procName ) : UIntPtr
GetWindowLong ( IntPtr hWnd, int nIndex ) : int
LoadIntCode ( string name, string path ) : Int32
LoadUIntPtrCode ( string name, string path = "" ) : UIntPtr
OpenProcess ( UInt32 dwDesiredAccess, Int32 bInheritHandle, Int32 dwProcessId ) : IntPtr
ReadProcessMemory ( IntPtr hProcess, UIntPtr lpBaseAddress, [ lpBuffer, UIntPtr nSize, IntPtr lpNumberOfBytesRead ) : bool
SendMessage ( IntPtr hWnd, uint Msg, IntPtr w, IntPtr l ) : IntPtr
SetForegroundWindow ( IntPtr hWnd ) : bool
VirtualAllocEx ( IntPtr hProcess, IntPtr lpAddress, uint dwSize, uint flAllocationType, uint flProtect ) : IntPtr
VirtualFreeEx ( IntPtr hProcess, IntPtr lpAddress, UIntPtr dwSize, uint dwFreeType ) : bool
WaitForSingleObject ( IntPtr handle, Int32 milliseconds ) : Int32
WriteProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, string lpBuffer, UIntPtr nSize, IntPtr &lpNumberOfBytesWritten ) : bool
WriteProcessMemory ( IntPtr hProcess, UIntPtr lpBaseAddress, byte lpBuffer, UIntPtr nSize, IntPtr lpNumberOfBytesWritten ) : bool
_CloseHandle ( IntPtr hObject ) : bool
getCode ( string name, string path, int size = 4 ) : UIntPtr

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

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

public AoBScan ( uint min, int length, string code, string file = "" ) : IntPtr
min uint
length int
code string
file string
Результат System.IntPtr

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

public CutString ( string str ) : string
str string
Результат string

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

public InjectDLL ( String strDLLName ) : void
strDLLName String
Результат void

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

public LoadCode ( string name, string file ) : string
name string
file string
Результат string

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

public OpenGameProcess ( int procID ) : bool
procID int
Результат bool

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

public ThreadStartClient ( string func ) : void
func string
Результат void

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

public closeProcess ( ) : void
Результат void

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

public getModules ( ) : void
Результат void

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

public getProcIDFromName ( string name ) : int
name string
Результат int

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

public read2Byte ( string code, string file = "" ) : int
code string
file string
Результат int

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

public read2ByteMove ( string code, int moveQty, string file = "" ) : int
code string
moveQty int
file string
Результат int

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

public readByte ( string code, string file = "" ) : int
code string
file string
Результат int

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

public readFloat ( string code, string file = "" ) : float
code string
file string
Результат float

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

public readInt ( string code, string file = "" ) : int
code string
file string
Результат int

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

public readIntMove ( string code, int moveQty, string file = "" ) : int
code string
moveQty int
file string
Результат int

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

public readPByte ( UIntPtr address, string code, string file = "" ) : int
address System.UIntPtr
code string
file string
Результат int

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

public readPFloat ( UIntPtr address, string code, string file = "" ) : float
address System.UIntPtr
code string
file string
Результат float

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

public readPInt ( UIntPtr address, string code, string file = "" ) : int
address System.UIntPtr
code string
file string
Результат int

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

public readPString ( UIntPtr address, string code, string file = "" ) : string
address System.UIntPtr
code string
file string
Результат string

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

public readString ( string code, string file = "" ) : string
code string
file string
Результат string

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

public readUInt ( string code, string file = "" ) : uint
code string
file string
Результат uint

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

public readUIntMove ( string code, string file, int moveQty ) : ulong
code string
file string
moveQty int
Результат ulong

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

public readUIntPtr ( UIntPtr code ) : int
code System.UIntPtr
Результат int

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

public sanitizeString ( string str ) : string
str string
Результат string

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

public setFocus ( ) : void
Результат void

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

public writeByte ( UIntPtr code, byte write, int size ) : void
code System.UIntPtr
write byte
size int
Результат void

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

public writeMemory ( string code, string type, string write, string file = "" ) : bool
code string
type string
write string
file string
Результат bool

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

public writeMove ( string code, string type, string write, int moveQty, string file = "" ) : bool
code string
type string
write string
moveQty int
file string
Результат bool

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

public writeUIntPtr ( string code, byte write, string file = "" ) : void
code string
write byte
file string
Результат void

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

modules публичное свойство

public Dictionary modules
Результат IntPtr>.Dictionary

pHandle публичное статическое свойство

public static IntPtr,System pHandle
Результат System.IntPtr

procs публичное свойство

public Process procs
Результат Process