C# Class FinalesFunkeln.Util.ProcessMemory

Inheritance: IDisposable
Mostrar archivo Open project: frostycpu/FinalesFunkeln Class Usage Examples

Public Methods

Method Description
Alloc ( int len ) : Int32
Dispose ( ) : void
DuplicateMutex ( Mutex mutex ) : void
GetAddress ( Int32 mod, string name ) : Int32
GetAddress ( string modname, string name ) : Int32
GetModule ( string modname ) : Int32
GetModuleInfos ( ) : IEnumerable
Is64Bit ( ) : bool
LoadModule ( string name ) : Int32
ProcessMemory ( int id ) : System
Read ( Int32 addr, int len ) : byte[]
VirtualQuery ( Int32 address ) : MEMORY_BASIC_INFORMATION
Write ( Int32 addr, byte bytes ) : void

Protected Methods

Method Description
Dispose ( bool dispose ) : void

Private Methods

Method Description
CloseHandle ( HandleRef handle ) : bool
CloseHandle ( IntPtr hObject ) : bool
CreateToolhelp32Snapshot ( int flags, int processId ) : ToolHelpHandle
DuplicateHandle ( [ hSourceProcessHandle, [ hSourceHandle, [ hTargetProcessHandle, [ lpTargetHandle, [ dwDesiredAccess, [ bInheritHandle, [ dwOptions ) : bool
GetCurrentProcess ( ) : IntPtr
GetModuleHandle ( string lpModuleName ) : Int32
GetProcAddress ( Int32 hModule, string procedureName ) : Int32
IsWow64Process ( IntPtr processHandle, bool &wow64Process ) : bool
LoadLibrary ( string dllToLoad ) : Int32
Module32First ( ToolHelpHandle hSnapshot, MODULEENTRY32 &lpme ) : bool
Module32Next ( ToolHelpHandle hSnapshot, MODULEENTRY32 &lpme ) : bool
OpenProcess ( UInt32 dwDesiredAccess, Int32 bInheritHandle, Int32 dwProcessId ) : IntPtr
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, byte buffer, Int32 size, IntPtr &lpNumberOfBytesRead ) : bool
VirtualAllocEx ( IntPtr hProcess, Int32 lpAddress, Int32 dwSize, AllocationType flAllocationType, MemoryProtection flProtect ) : Int32
VirtualQueryEx ( IntPtr handle, Int32 address, MEMORY_BASIC_INFORMATION &buffer, Int32 sizeOfBuffer ) : Int32
WriteProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, byte lpBuffer, Int32 nSize, IntPtr &lpNumberOfBytesWritten ) : bool

Method Details

Alloc() public method

public Alloc ( int len ) : Int32
len int
return System.Int32

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool dispose ) : void
dispose bool
return void

DuplicateMutex() public method

public DuplicateMutex ( Mutex mutex ) : void
mutex System.Threading.Mutex
return void

GetAddress() public method

public GetAddress ( Int32 mod, string name ) : Int32
mod System.Int32
name string
return System.Int32

GetAddress() public method

public GetAddress ( string modname, string name ) : Int32
modname string
name string
return System.Int32

GetModule() public static method

public static GetModule ( string modname ) : Int32
modname string
return System.Int32

GetModuleInfos() public method

public GetModuleInfos ( ) : IEnumerable
return IEnumerable

Is64Bit() public method

public Is64Bit ( ) : bool
return bool

LoadModule() public method

public LoadModule ( string name ) : Int32
name string
return System.Int32

ProcessMemory() public method

public ProcessMemory ( int id ) : System
id int
return System

Read() public method

public Read ( Int32 addr, int len ) : byte[]
addr System.Int32
len int
return byte[]

VirtualQuery() public method

public VirtualQuery ( Int32 address ) : MEMORY_BASIC_INFORMATION
address System.Int32
return MEMORY_BASIC_INFORMATION

Write() public method

public Write ( Int32 addr, byte bytes ) : void
addr System.Int32
bytes byte
return void