• Welcome to Valhalla Legends Archive.
 

***ReadProcessMemory, Dynamic Memory.

Started by phvckmeh, August 20, 2004, 02:50 AM

Previous topic - Next topic

phvckmeh

Alright so lets make this simple. Ive created a program that will read a certain byte from a certain program. The problem is, everytime this program opens, the adress where i find that value changes. How do i ReadProccessMemory a dynamic value?

Adron

Quote from: phvckmeh on August 20, 2004, 02:50 AM
Alright so lets make this simple. Ive created a program that will read a certain byte from a certain program. The problem is, everytime this program opens, the adress where i find that value changes. How do i ReadProccessMemory a dynamic value?

You find out where the game keeps track of where the value is and ReadProcessMemory that first.

phvckmeh

#2
Alright, i used Tsearch to find the value, lets say the adress was
0412412

would i then search for that value? because i did and i got nothing

Adron

Quote from: phvckmeh on August 20, 2004, 01:04 PM
Alright, i used Tsearch to find the value, lets say the adress was
0412412

would i then search for that value? because i did and i got nothing

The most productive way would probably be to set an access breakpoint on it, find out where it's used from and then reverse-engineer that code. You could also just search for "random" offsets from that address (particularly nice round ones such as 412410).