Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Tue Oct 09, 2012 2:50 am Post subject: |
|
|
API
| Code: | | Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As Integer, ByVal buffer As Byte(), ByVal size As Integer, ByVal lpNumberOfBytesWritten As Integer) As Boolean |
A very simple function, no pointers or modules.
| Code: | Function WriteBytes(ByVal ProcessName As String, ByVal Address As Integer, ByVal Bytes2Write As Byte()) As Boolean
Dim Proc As Process() = Process.GetProcessesByName(ProcessName)
If Proc.Length = 0 Then
Return False
End If
Return WriteProcessMemory(Proc(0).Handle, Address, Bytes2Write, Bytes2Write.Length, 0)
End Function |
All you need now is the process name, address you're writing too and the array of bytes you wanna write.
example
| Code: | | WriteBytes("SomeGame", &H4000000, New Byte() {&H90, &H90, &H90, &H90, &H90}) |
Just change it to whatever you need.
_________________
|
|