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 


how to find the addresses of DLLs in a process?

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

Joined: 06 Aug 2009
Posts: 61

PostPosted: Sun Apr 03, 2011 9:47 am    Post subject: how to find the addresses of DLLs in a process? Reply with quote

if a software loads DLLs into different addresses each time, that creates some inconvinience.
how to find the addresses of the DLLs? i mean using functions inside the process, without external tools.
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 Apr 03, 2011 10:26 am    Post subject: Reply with quote

There are two common methods using: (http://msdn.microsoft.com/en-us/library/aa450774.aspx)
- CreateToolhelp32Snapshot
- Module32First
- Module32Next


Or using PSAPI methods: (http://msdn.microsoft.com/en-us/library/ms684894%28v=vs.85%29.aspx)
- EnumProcessModules
- EnumProcessModulesEx
- GetModuleBaseName
- GetModuleFileNameEx
- GetModuleInformation

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
supercharger
Advanced Cheater
Reputation: 0

Joined: 06 Aug 2009
Posts: 61

PostPosted: Sun Apr 03, 2011 10:15 pm    Post subject: Reply with quote

thanks.
Back to top
View user's profile Send private message
False Prophet
Expert Cheater
Reputation: -1

Joined: 28 May 2006
Posts: 121

PostPosted: Tue Apr 05, 2011 2:17 am    Post subject: Reply with quote

If you go the Module32First/Next route then you'll find it extremely simple and similar to Process32First/Next
_________________
Back to top
View user's profile Send private message
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