C# Class ProcessMemory, SAMP_AC_Extension

ファイルを表示 Open project: Whitetigerswt/SAMP_AC_Extension Class Usage Examples

Protected Properties

Property Type Description
BaseAddress int
MyProcess Process[]
ProcessName string
myProcessModule ProcessModule
processHandle int

Public Methods

Method Description
CheckProcess ( ) : bool
CutString ( string mystring ) : string
DllImageAddress ( string dllname ) : int
ImageAddress ( ) : int
ImageAddress ( int pOffset ) : int
MyProcessName ( ) : string
Pointer ( bool AddToImageAddress, int pOffset ) : int
Pointer ( bool AddToImageAddress, int pOffset, int pOffset2 ) : int
Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3 ) : int
Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3, int pOffset4 ) : int
Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5 ) : int
Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5, int pOffset6 ) : int
Pointer ( string Module, int pOffset ) : int
Pointer ( string Module, int pOffset, int pOffset2 ) : int
Pointer ( string Module, int pOffset, int pOffset2, int pOffset3 ) : int
Pointer ( string Module, int pOffset, int pOffset2, int pOffset3, int pOffset4 ) : int
Pointer ( string Module, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5 ) : int
Pointer ( string Module, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5, int pOffset6 ) : int
ProcessMemory ( string pProcessName ) : System
ReadByte ( bool AddToImageAddress, int pOffset ) : byte
ReadByte ( int pOffset ) : byte
ReadByte ( string Module, int pOffset ) : byte
ReadFloat ( bool AddToImageAddress, int pOffset ) : float
ReadFloat ( int pOffset ) : float
ReadFloat ( string Module, int pOffset ) : float
ReadInt ( bool AddToImageAddress, int pOffset ) : int
ReadInt ( int pOffset ) : int
ReadInt ( string Module, int pOffset ) : int
ReadMem ( int pOffset, int pSize ) : byte[]
ReadMem ( int pOffset, int pSize, bool AddToImageAddress ) : byte[]
ReadShort ( bool AddToImageAddress, int pOffset ) : short
ReadShort ( int pOffset ) : short
ReadShort ( string Module, int pOffset ) : short
ReadStringAscii ( bool AddToImageAddress, int pOffset, int pSize ) : string
ReadStringAscii ( int pOffset, int pSize ) : string
ReadStringAscii ( string Module, int pOffset, int pSize ) : string
ReadStringUnicode ( bool AddToImageAddress, int pOffset, int pSize ) : string
ReadStringUnicode ( int pOffset, int pSize ) : string
ReadStringUnicode ( string Module, int pOffset, int pSize ) : string
ReadUInt ( bool AddToImageAddress, int pOffset ) : uint
ReadUInt ( int pOffset ) : uint
ReadUInt ( string Module, int pOffset ) : uint
StartProcess ( ) : bool
WriteByte ( bool AddToImageAddress, int pOffset, byte pBytes ) : void
WriteByte ( int pOffset, byte pBytes ) : void
WriteByte ( string Module, int pOffset, byte pBytes ) : void
WriteDouble ( bool AddToImageAddress, int pOffset, double pBytes ) : void
WriteDouble ( int pOffset, double pBytes ) : void
WriteDouble ( string Module, int pOffset, double pBytes ) : void
WriteFloat ( bool AddToImageAddress, int pOffset, float pBytes ) : void
WriteFloat ( int pOffset, float pBytes ) : void
WriteFloat ( string Module, int pOffset, float pBytes ) : void
WriteInt ( bool AddToImageAddress, int pOffset, int pBytes ) : void
WriteInt ( int pOffset, int pBytes ) : void
WriteInt ( string Module, int pOffset, int pBytes ) : void
WriteMem ( int pOffset, byte pBytes ) : void
WriteMem ( int pOffset, byte pBytes, bool AddToImageAddress ) : void
WriteShort ( bool AddToImageAddress, int pOffset, short pBytes ) : void
WriteShort ( int pOffset, short pBytes ) : void
WriteShort ( string Module, int pOffset, short pBytes ) : void
WriteStringAscii ( bool AddToImageAddress, int pOffset, string pBytes ) : void
WriteStringAscii ( int pOffset, string pBytes ) : void
WriteStringAscii ( string Module, int pOffset, string pBytes ) : void
WriteStringUnicode ( bool AddToImageAddress, int pOffset, string pBytes ) : void
WriteStringUnicode ( int pOffset, string pBytes ) : void
WriteStringUnicode ( string Module, int pOffset, string pBytes ) : void
WriteUInt ( bool AddToImageAddress, int pOffset, uint pBytes ) : void
WriteUInt ( int pOffset, uint pBytes ) : void
WriteUInt ( string Module, int pOffset, uint pBytes ) : void

Private Methods

Method Description
CloseHandle ( int hObject ) : bool
FindWindowByCaption ( int ZeroOnly, string lpWindowName ) : int
OpenProcess ( uint dwDesiredAccess, bool bInheritHandle, int dwProcessId ) : int
ReadProcessMemory ( int hProcess, int lpBaseAddress, byte buffer, int size, int lpNumberOfBytesRead ) : bool
VirtualProtectEx ( int hProcess, int lpAddress, int dwSize, uint flNewProtect, uint &lpflOldProtect ) : bool
WriteProcessMemory ( int hProcess, int lpBaseAddress, byte buffer, int size, int lpNumberOfBytesWritten ) : bool

Method Details

CheckProcess() public method

public CheckProcess ( ) : bool
return bool

CutString() public method

public CutString ( string mystring ) : string
mystring string
return string

DllImageAddress() public method

public DllImageAddress ( string dllname ) : int
dllname string
return int

ImageAddress() public method

public ImageAddress ( ) : int
return int

ImageAddress() public method

public ImageAddress ( int pOffset ) : int
pOffset int
return int

MyProcessName() public method

public MyProcessName ( ) : string
return string

Pointer() public method

public Pointer ( bool AddToImageAddress, int pOffset ) : int
AddToImageAddress bool
pOffset int
return int

Pointer() public method

public Pointer ( bool AddToImageAddress, int pOffset, int pOffset2 ) : int
AddToImageAddress bool
pOffset int
pOffset2 int
return int

Pointer() public method

public Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3 ) : int
AddToImageAddress bool
pOffset int
pOffset2 int
pOffset3 int
return int

Pointer() public method

public Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3, int pOffset4 ) : int
AddToImageAddress bool
pOffset int
pOffset2 int
pOffset3 int
pOffset4 int
return int

Pointer() public method

public Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5 ) : int
AddToImageAddress bool
pOffset int
pOffset2 int
pOffset3 int
pOffset4 int
pOffset5 int
return int

Pointer() public method

public Pointer ( bool AddToImageAddress, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5, int pOffset6 ) : int
AddToImageAddress bool
pOffset int
pOffset2 int
pOffset3 int
pOffset4 int
pOffset5 int
pOffset6 int
return int

Pointer() public method

public Pointer ( string Module, int pOffset ) : int
Module string
pOffset int
return int

Pointer() public method

public Pointer ( string Module, int pOffset, int pOffset2 ) : int
Module string
pOffset int
pOffset2 int
return int

Pointer() public method

public Pointer ( string Module, int pOffset, int pOffset2, int pOffset3 ) : int
Module string
pOffset int
pOffset2 int
pOffset3 int
return int

Pointer() public method

public Pointer ( string Module, int pOffset, int pOffset2, int pOffset3, int pOffset4 ) : int
Module string
pOffset int
pOffset2 int
pOffset3 int
pOffset4 int
return int

Pointer() public method

public Pointer ( string Module, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5 ) : int
Module string
pOffset int
pOffset2 int
pOffset3 int
pOffset4 int
pOffset5 int
return int

Pointer() public method

public Pointer ( string Module, int pOffset, int pOffset2, int pOffset3, int pOffset4, int pOffset5, int pOffset6 ) : int
Module string
pOffset int
pOffset2 int
pOffset3 int
pOffset4 int
pOffset5 int
pOffset6 int
return int

ProcessMemory() public method

public ProcessMemory ( string pProcessName ) : System
pProcessName string
return System

ReadByte() public method

public ReadByte ( bool AddToImageAddress, int pOffset ) : byte
AddToImageAddress bool
pOffset int
return byte

ReadByte() public method

public ReadByte ( int pOffset ) : byte
pOffset int
return byte

ReadByte() public method

public ReadByte ( string Module, int pOffset ) : byte
Module string
pOffset int
return byte

ReadFloat() public method

public ReadFloat ( bool AddToImageAddress, int pOffset ) : float
AddToImageAddress bool
pOffset int
return float

ReadFloat() public method

public ReadFloat ( int pOffset ) : float
pOffset int
return float

ReadFloat() public method

public ReadFloat ( string Module, int pOffset ) : float
Module string
pOffset int
return float

ReadInt() public method

public ReadInt ( bool AddToImageAddress, int pOffset ) : int
AddToImageAddress bool
pOffset int
return int

ReadInt() public method

public ReadInt ( int pOffset ) : int
pOffset int
return int

ReadInt() public method

public ReadInt ( string Module, int pOffset ) : int
Module string
pOffset int
return int

ReadMem() public method

public ReadMem ( int pOffset, int pSize ) : byte[]
pOffset int
pSize int
return byte[]

ReadMem() public method

public ReadMem ( int pOffset, int pSize, bool AddToImageAddress ) : byte[]
pOffset int
pSize int
AddToImageAddress bool
return byte[]

ReadShort() public method

public ReadShort ( bool AddToImageAddress, int pOffset ) : short
AddToImageAddress bool
pOffset int
return short

ReadShort() public method

public ReadShort ( int pOffset ) : short
pOffset int
return short

ReadShort() public method

public ReadShort ( string Module, int pOffset ) : short
Module string
pOffset int
return short

ReadStringAscii() public method

public ReadStringAscii ( bool AddToImageAddress, int pOffset, int pSize ) : string
AddToImageAddress bool
pOffset int
pSize int
return string

ReadStringAscii() public method

public ReadStringAscii ( int pOffset, int pSize ) : string
pOffset int
pSize int
return string

ReadStringAscii() public method

public ReadStringAscii ( string Module, int pOffset, int pSize ) : string
Module string
pOffset int
pSize int
return string

ReadStringUnicode() public method

public ReadStringUnicode ( bool AddToImageAddress, int pOffset, int pSize ) : string
AddToImageAddress bool
pOffset int
pSize int
return string

ReadStringUnicode() public method

public ReadStringUnicode ( int pOffset, int pSize ) : string
pOffset int
pSize int
return string

ReadStringUnicode() public method

public ReadStringUnicode ( string Module, int pOffset, int pSize ) : string
Module string
pOffset int
pSize int
return string

ReadUInt() public method

public ReadUInt ( bool AddToImageAddress, int pOffset ) : uint
AddToImageAddress bool
pOffset int
return uint

ReadUInt() public method

public ReadUInt ( int pOffset ) : uint
pOffset int
return uint

ReadUInt() public method

public ReadUInt ( string Module, int pOffset ) : uint
Module string
pOffset int
return uint

StartProcess() public method

public StartProcess ( ) : bool
return bool

WriteByte() public method

public WriteByte ( bool AddToImageAddress, int pOffset, byte pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes byte
return void

WriteByte() public method

public WriteByte ( int pOffset, byte pBytes ) : void
pOffset int
pBytes byte
return void

WriteByte() public method

public WriteByte ( string Module, int pOffset, byte pBytes ) : void
Module string
pOffset int
pBytes byte
return void

WriteDouble() public method

public WriteDouble ( bool AddToImageAddress, int pOffset, double pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes double
return void

WriteDouble() public method

public WriteDouble ( int pOffset, double pBytes ) : void
pOffset int
pBytes double
return void

WriteDouble() public method

public WriteDouble ( string Module, int pOffset, double pBytes ) : void
Module string
pOffset int
pBytes double
return void

WriteFloat() public method

public WriteFloat ( bool AddToImageAddress, int pOffset, float pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes float
return void

WriteFloat() public method

public WriteFloat ( int pOffset, float pBytes ) : void
pOffset int
pBytes float
return void

WriteFloat() public method

public WriteFloat ( string Module, int pOffset, float pBytes ) : void
Module string
pOffset int
pBytes float
return void

WriteInt() public method

public WriteInt ( bool AddToImageAddress, int pOffset, int pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes int
return void

WriteInt() public method

public WriteInt ( int pOffset, int pBytes ) : void
pOffset int
pBytes int
return void

WriteInt() public method

public WriteInt ( string Module, int pOffset, int pBytes ) : void
Module string
pOffset int
pBytes int
return void

WriteMem() public method

public WriteMem ( int pOffset, byte pBytes ) : void
pOffset int
pBytes byte
return void

WriteMem() public method

public WriteMem ( int pOffset, byte pBytes, bool AddToImageAddress ) : void
pOffset int
pBytes byte
AddToImageAddress bool
return void

WriteShort() public method

public WriteShort ( bool AddToImageAddress, int pOffset, short pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes short
return void

WriteShort() public method

public WriteShort ( int pOffset, short pBytes ) : void
pOffset int
pBytes short
return void

WriteShort() public method

public WriteShort ( string Module, int pOffset, short pBytes ) : void
Module string
pOffset int
pBytes short
return void

WriteStringAscii() public method

public WriteStringAscii ( bool AddToImageAddress, int pOffset, string pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes string
return void

WriteStringAscii() public method

public WriteStringAscii ( int pOffset, string pBytes ) : void
pOffset int
pBytes string
return void

WriteStringAscii() public method

public WriteStringAscii ( string Module, int pOffset, string pBytes ) : void
Module string
pOffset int
pBytes string
return void

WriteStringUnicode() public method

public WriteStringUnicode ( bool AddToImageAddress, int pOffset, string pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes string
return void

WriteStringUnicode() public method

public WriteStringUnicode ( int pOffset, string pBytes ) : void
pOffset int
pBytes string
return void

WriteStringUnicode() public method

public WriteStringUnicode ( string Module, int pOffset, string pBytes ) : void
Module string
pOffset int
pBytes string
return void

WriteUInt() public method

public WriteUInt ( bool AddToImageAddress, int pOffset, uint pBytes ) : void
AddToImageAddress bool
pOffset int
pBytes uint
return void

WriteUInt() public method

public WriteUInt ( int pOffset, uint pBytes ) : void
pOffset int
pBytes uint
return void

WriteUInt() public method

public WriteUInt ( string Module, int pOffset, uint pBytes ) : void
Module string
pOffset int
pBytes uint
return void

Property Details

BaseAddress protected_oe property

protected int BaseAddress
return int

MyProcess protected_oe property

protected Process[] MyProcess
return Process[]

ProcessName protected_oe property

protected string ProcessName
return string

myProcessModule protected_oe property

protected ProcessModule myProcessModule
return ProcessModule

processHandle protected_oe property

protected int processHandle
return int