Posted: Mon Nov 24, 2008 9:46 am Post subject: Dynamic Memory Addresses? Something else?
Does DMA affect function entry point addresses as well? I've been having a problem with the addresses changing when I reboot my computer for the windows vista minesweeper game.
StartAboutDialog was at 0x00CAFED4, after rebooting it became 0x00C8FED4. Any ideas?
I was pretty certain that DMA changed addresses every time game was restarted, but this one only changes addresses when I reboot my computer. It's also different for different computers. The address is always something like 00C*FED4 though. only the * changes.
Joined: 09 May 2003 Posts: 25867 Location: The netherlands
Posted: Mon Nov 24, 2008 10:27 am Post subject:
in vista the entry point can differ yes.
Thats why you have to use modulename+offset
And the reason why it differs only on boot is because windows likes to keep copies of modules at addresses after they have been loaded so they can be shared with other processes to increase speed. (so no need to go through the relocation table on opening) So only when it really HAS to it goes through the relocation _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
in vista the entry point can differ yes.
Thats why you have to use modulename+offset
And the reason why it differs only on boot is because windows likes to keep copies of modules at addresses after they have been loaded so they can be shared with other processes to increase speed. (so no need to go through the relocation table on opening) So only when it really HAS to it goes through the relocation
EDIT: Ignore the below questions. I figured it out on my own.
Does this apply even if the function is part of a EXE and not a DLL? I'm trying to hook the StartAboutBoxDialog function (triggered when you do help -> about in minesweeper).
If so, if it's an EXE, how would I determine the base address to add the offset 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