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 do I get the baseaddress of a 64 bit process? for vb6

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

Joined: 19 Oct 2021
Posts: 2

PostPosted: Tue Oct 19, 2021 6:53 pm    Post subject: How do I get the baseaddress of a 64 bit process? for vb6 Reply with quote

I need to obtain the base address of a 64-bit .exe process, in the same way that CE does, I find myself in the need to do this since the address changes over time, I have had experience obtaining addresses for dll from a process 32 bits but I have not had success with the .exe process and less with 64 bits since I must store it in a variable that supports the "7FFFFFFFFFFF" type of extension.

I know it is a very asked topic here, but I can't quite understand it. If you can help me step by step I would be very grateful.

Thanks very much!



IMG1.jpg
 Description:
 Filesize:  38.35 KB
 Viewed:  3866 Time(s)

IMG1.jpg


Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Tue Oct 19, 2021 7:07 pm    Post subject: Reply with quote

The API used to poll that same information works for both 32bit and 64bit.

With Toolhlp:
- CreateToolhelp32Snapshot
- Process32First / Process32Next
- Module32First / Module32Next

Or via PSAPI:
- EnumProcesses
- EnumProcessModules
- GetModuleInformation

There are a handful of other ways to do it, but these are the two most common.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
maatooh
How do I cheat?
Reputation: 0

Joined: 19 Oct 2021
Posts: 2

PostPosted: Tue Oct 19, 2021 7:18 pm    Post subject: Reply with quote

wow, thanks for your quick response, I'll try from there. If you can provide me with an example it would be excellent, but thank you very much in advance, I hope to achieve it, it has been a lot complicated for me.

I'm still not very clear about the handling of those APIs, I will be investigating it.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Wed Oct 20, 2021 7:20 pm    Post subject: Reply with quote

check out this example from microsoft.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Wed Oct 20, 2021 11:15 pm    Post subject: Reply with quote

There are a lot of examples of doing this across this forum and the web as well. For all the API I listed above, as well as several other common methods used if there are other requirements in place such as bypassing basic anti-cheat measures.
_________________
- 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