DRM_Vodor How do I cheat?
Reputation: 0
Joined: 01 Dec 2010 Posts: 1
|
Posted: Wed Dec 01, 2010 6:18 am Post subject: Delphi ReadProcessMemory |
|
|
I am quiet good in Delphi, but this is the first time when i messed up with memory editing.
| Code: |
var
Data: PWideChar;
BytesRead: DWORD;
PID: Integer
Address: Integer;
begin
Address := $1A0B6D3
W:=FindWindow(nil, PChar(MainForm.edt1.Text)) ;
Windows.GetWindowThreadProcessId(w, @pID);
GetMem(data, 5);
W2 := Windows.OpenProcess(PROCESS_VM_READ, False, pID);
ReadProcessMemory(w2, ptr(Address), data, 5, BytesRead);
end; |
Ain't working. Always returns some stuff which has nothing to do with that string written at this address(Address is taken through CE).
I am also googled this, but nothing(Looks like i did everything right. But not).
|
|