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 


Pointer scan is only resulting in pointers using .dlls inste

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
BorgleDorgleSnorgleSon
Newbie cheater
Reputation: 0

Joined: 03 Jan 2013
Posts: 14

PostPosted: Wed Aug 19, 2015 5:43 pm    Post subject: Pointer scan is only resulting in pointers using .dlls inste Reply with quote

I'm working on a little trainer in C++ for a game. An issue i'm having is the pointer scan is only resulting in pointers based off the .dll instead of the base process (.exe). I know how to read and write to memory in C++ from the base address, but I don't know how to do it based off the .dll base. Can anyone point me in the right direction of how to even get the base of the .dll vs the base of the .exe address for C++?
Back to top
View user's profile Send private message
Eurochron89
Newbie cheater
Reputation: 1

Joined: 12 Aug 2015
Posts: 17

PostPosted: Wed Aug 19, 2015 6:22 pm    Post subject: Reply with quote

@Pindrought:
1) you need to find all the Modules (= DLLs) of the Game Process
-> MSDN: EnumProcessModules

2) Then go through these modules and look for the DLL name you want
-> MSDN: GetModuleBaseName

3) ... and when you have the DLL you want, get its base address
-> MSDN: GetModuleInformation and MODULEINFO structure

4) After that you can use the Modules Base Address the same way like the .exe's Base Address
-> module base address (+ pointer)
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: Wed Aug 19, 2015 9:40 pm    Post subject: Reply with quote

An alternative to the above would be:
- CreateToolhelp32Snapshot
- Process32First
- Process32Next
- Module32First
- Module32Next

If you don't want to import PSAPI that is.

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