Posted: Sat Sep 01, 2018 4:59 am Post subject: I have a couple of questions.
Q1:
When I have a pointer address and it says "game.exe"+offset, what exactly is "game.exe" and how do I find it using a C++ program? (Don't tell me to use GetModuleHandle, because it doesn't return "game.exe". I tested that myself by subtracting the offset from "game.exe"+offset and comparing it with GetModuleHandle())
Q2:
Take a look at the picture below. It says [03211000 + 5B0] -> 01695000. Why is 03211000 + 5B0 equal to 01695000? Shouldn't it be 32115B0? That happens with all offsets.
1: GetModuleHandle(NULL) will return the base address of the .exe file of the calling process. If you're not injected into the game's process, it won't work.
Assuming you're not in the calling process, look into CreateToolhelp32Snapshot. If you are (e.g. injected dll), you're doing something wrong with GetModuleHandle.
2: Square brackets usually refer to the value stored at an address. [0x03211000 + 0x5B0] = 0x01695000 means the value stored at the address 0x032115B0 is 0x01695000. _________________
I don't know where I'm going, but I'll figure it out when I get there.
1: GetModuleHandle(NULL) will return the base address of the .exe file of the calling process. If you're not injected into the game's process, it won't work.
Assuming you're not in the calling process, look into CreateToolhelp32Snapshot. If you are (e.g. injected dll), you're doing something wrong with GetModuleHandle.
2: Square brackets usually refer to the value stored at an address. [0x03211000 + 0x5B0] = 0x01695000 means the value stored at the address 0x032115B0 is 0x01695000.
Thank you for answering my questions. I appreciate that. _________________
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