Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Delphi ReadProcessMemory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
DRM_Vodor
How do I cheat?
Reputation: 0

Joined: 01 Dec 2010
Posts: 1

PostPosted: Wed Dec 01, 2010 6:18 am    Post subject: Delphi ReadProcessMemory Reply with quote

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).
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25832
Location: The netherlands

PostPosted: Wed Dec 01, 2010 10:01 am    Post subject: Reply with quote

so the data being read is a variable of "Text" with type unicode with a length of 2?

If not, check again what you want to do.

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites