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 for accessing a loaded dll?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
False Prophet
Expert Cheater
Reputation: -1

Joined: 28 May 2006
Posts: 121

PostPosted: Sun Dec 26, 2010 11:36 am    Post subject: ReadProcessMemory for accessing a loaded dll? Reply with quote

What tricks can I use to read an address that is located at(in Cheat Engine) AnDLL.dll+5E490?
_________________
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: Sun Dec 26, 2010 12:59 pm    Post subject: Reply with quote

To get the process id:
- CreateToolhelp32Snapshot
- Process32First
- Process32Next
-- or --
- EnumProcessModules
- GetModuleBaseName

To get the module base address:
- CreateToolhelp32Snapshot
- Module32First
- Module32Next
-- or --
- PSAPI.EnumProcessModules

Once you have the base address, you can add the offset to the base to get the address:
base + offset = address
base + 0x5E490 = address


Then you can use the following to read the address:
- OpenProcess
- ReadProcessMemory

(If the address is protected you may need to adjust permissions.)
- VirtualProtect

Be sure to close all your opened handles as well with:
- CloseHandle

_________________
- 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