C# Class ShootBlues.RemoteMemoryRegion

Inheritance: IDisposable
Show file Open project: kg/shootblues Class Usage Examples

Public Properties

Property Type Description
Address System.IntPtr
Process System.Diagnostics.Process
Size System.UInt32

Public Methods

Method Description
Allocate ( Process process, SafeProcessHandle handle, UInt32 size ) : RemoteMemoryRegion
Allocate ( Process process, UInt32 size ) : RemoteMemoryRegion
Dispose ( ) : void
Existing ( Process process, IntPtr address, UInt32 size ) : RemoteMemoryRegion
OpenHandle ( ProcessAccessFlags flags ) : SafeProcessHandle
Protect ( SafeProcessHandle handle, uint offset, uint size, MemoryProtection newProtect ) : void
Read ( SafeProcessHandle handle, uint offset, uint size, byte buffer ) : int
ReadBytes ( SafeProcessHandle handle, uint offset, uint size ) : byte[]
Write ( SafeProcessHandle handle, uint offset, uint size, byte data ) : int

Private Methods

Method Description
RemoteMemoryRegion ( ) : System

Method Details

Allocate() public static method

public static Allocate ( Process process, SafeProcessHandle handle, UInt32 size ) : RemoteMemoryRegion
process System.Diagnostics.Process
handle SafeProcessHandle
size System.UInt32
return RemoteMemoryRegion

Allocate() public static method

public static Allocate ( Process process, UInt32 size ) : RemoteMemoryRegion
process System.Diagnostics.Process
size System.UInt32
return RemoteMemoryRegion

Dispose() public method

public Dispose ( ) : void
return void

Existing() public static method

public static Existing ( Process process, IntPtr address, UInt32 size ) : RemoteMemoryRegion
process System.Diagnostics.Process
address System.IntPtr
size System.UInt32
return RemoteMemoryRegion

OpenHandle() public method

public OpenHandle ( ProcessAccessFlags flags ) : SafeProcessHandle
flags ProcessAccessFlags
return SafeProcessHandle

Protect() public method

public Protect ( SafeProcessHandle handle, uint offset, uint size, MemoryProtection newProtect ) : void
handle SafeProcessHandle
offset uint
size uint
newProtect MemoryProtection
return void

Read() public method

public Read ( SafeProcessHandle handle, uint offset, uint size, byte buffer ) : int
handle SafeProcessHandle
offset uint
size uint
buffer byte
return int

ReadBytes() public method

public ReadBytes ( SafeProcessHandle handle, uint offset, uint size ) : byte[]
handle SafeProcessHandle
offset uint
size uint
return byte[]

Write() public method

public Write ( SafeProcessHandle handle, uint offset, uint size, byte data ) : int
handle SafeProcessHandle
offset uint
size uint
data byte
return int

Property Details

Address public property

public IntPtr,System Address
return System.IntPtr

Process public property

public Process,System.Diagnostics Process
return System.Diagnostics.Process

Size public property

public UInt32,System Size
return System.UInt32