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 


ReadProcessMemory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Awed2
Cheater
Reputation: 0

Joined: 01 Jul 2014
Posts: 26

PostPosted: Sat Nov 15, 2014 2:16 am    Post subject: ReadProcessMemory Reply with quote

i have a little question c++ related (in that im not that good yet)

how do i turn this code (which works fine for a simple address)
Quote:
int value = 0;
DWORD address = 0x12345;
ReadProcessMemory(HANDLE,(void*)address,&value,sizeof(value),0);

into ".exe" +ABC123 + 5 Offsets (result of pointer scan)
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Nov 15, 2014 8:38 pm    Post subject: Reply with quote

Use CreateToolhelp32Snapshot with Process32First / Process32Next and Module32First to obtain the processes base address. There are tons of examples of this on this forum as well as the internet.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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