C# Class Memory.Mem

Mostra file Open project: erfg12/memory.dll Class Usage Examples

Public Properties

Property Type Description
modules IntPtr>.Dictionary
pHandle System.IntPtr
procs Process

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AoBScan() public method

public AoBScan ( uint min, int length, string code, string file = "" ) : IntPtr
min uint
length int
code string
file string
return System.IntPtr

CutString() public method

public CutString ( string str ) : string
str string
return string

InjectDLL() public method

public InjectDLL ( String strDLLName ) : void
strDLLName String
return void

LoadCode() public method

public LoadCode ( string name, string file ) : string
name string
file string
return string

OpenGameProcess() public method

public OpenGameProcess ( int procID ) : bool
procID int
return bool

ThreadStartClient() public method

public ThreadStartClient ( string func ) : void
func string
return void

closeProcess() public method

public closeProcess ( ) : void
return void

getModules() public method

public getModules ( ) : void
return void

getProcIDFromName() public method

public getProcIDFromName ( string name ) : int
name string
return int

read2Byte() public method

public read2Byte ( string code, string file = "" ) : int
code string
file string
return int

read2ByteMove() public method

public read2ByteMove ( string code, int moveQty, string file = "" ) : int
code string
moveQty int
file string
return int

readByte() public method

public readByte ( string code, string file = "" ) : int
code string
file string
return int

readFloat() public method

public readFloat ( string code, string file = "" ) : float
code string
file string
return float

readInt() public method

public readInt ( string code, string file = "" ) : int
code string
file string
return int

readIntMove() public method

public readIntMove ( string code, int moveQty, string file = "" ) : int
code string
moveQty int
file string
return int

readPByte() public method

public readPByte ( UIntPtr address, string code, string file = "" ) : int
address System.UIntPtr
code string
file string
return int

readPFloat() public method

public readPFloat ( UIntPtr address, string code, string file = "" ) : float
address System.UIntPtr
code string
file string
return float

readPInt() public method

public readPInt ( UIntPtr address, string code, string file = "" ) : int
address System.UIntPtr
code string
file string
return int

readPString() public method

public readPString ( UIntPtr address, string code, string file = "" ) : string
address System.UIntPtr
code string
file string
return string

readString() public method

public readString ( string code, string file = "" ) : string
code string
file string
return string

readUInt() public method

public readUInt ( string code, string file = "" ) : uint
code string
file string
return uint

readUIntMove() public method

public readUIntMove ( string code, string file, int moveQty ) : ulong
code string
file string
moveQty int
return ulong

readUIntPtr() public method

public readUIntPtr ( UIntPtr code ) : int
code System.UIntPtr
return int

sanitizeString() public method

public sanitizeString ( string str ) : string
str string
return string

setFocus() public method

public setFocus ( ) : void
return void

writeByte() public method

public writeByte ( UIntPtr code, byte write, int size ) : void
code System.UIntPtr
write byte
size int
return void

writeMemory() public method

public writeMemory ( string code, string type, string write, string file = "" ) : bool
code string
type string
write string
file string
return bool

writeMove() public method

public writeMove ( string code, string type, string write, int moveQty, string file = "" ) : bool
code string
type string
write string
moveQty int
file string
return bool

writeUIntPtr() public method

public writeUIntPtr ( string code, byte write, string file = "" ) : void
code string
write byte
file string
return void

Property Details

modules public_oe property

public Dictionary modules
return IntPtr>.Dictionary

pHandle public_oe static_oe property

public static IntPtr,System pHandle
return System.IntPtr

procs public_oe property

public Process procs
return Process