Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: phvckmeh on August 20, 2004, 02:50 AM

Title: ***ReadProcessMemory, Dynamic Memory.
Post by: 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?
Title: Re:ReadProcessMemory, Dynamic Memory.
Post by: Adron on August 20, 2004, 11:37 AM
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.
Title: Re:ReadProcessMemory, Dynamic Memory.
Post by: 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
Title: Re:ReadProcessMemory, Dynamic Memory.
Post by: Adron on August 20, 2004, 06:04 PM
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).