Greetings!
I'm looking for some guidance on how to locate a virtual memory address. If I use a memory editing program like MHS, GameShock or such I can easily find the address that I'm looking for. Once I have that address I can successfully read and write to that address with some functions that'll use OpenProcess and ReadProcessMemory/WriteProcessMemory from within a compiled PB program. Unfortunately, this address will sometimes change based on what virtual memory address block is assigned to it's data.
If I use some of the code that I think pertains to my situation; like,
...I can see all the modules that make up the program that I'm examining; but, it doesn't include the pertinent section that I'm attempting to examine as it's not a DLL or such. If I use Sysinternal's VMMap program I can easily locate the pertinent data (specifically, starting address and size); but, I'm not sure how VMMap gets the data across the bottom half of the screen. I'm sure that I can walk through all memory addresses using ReadProcessMemory in small chunks so it doesn't fail; but, that seems to be silly. Any ideas on a better way to gather the data that VMMap shows?
I'm looking for some guidance on how to locate a virtual memory address. If I use a memory editing program like MHS, GameShock or such I can easily find the address that I'm looking for. Once I have that address I can successfully read and write to that address with some functions that'll use OpenProcess and ReadProcessMemory/WriteProcessMemory from within a compiled PB program. Unfortunately, this address will sometimes change based on what virtual memory address block is assigned to it's data.
If I use some of the code that I think pertains to my situation; like,
...I can see all the modules that make up the program that I'm examining; but, it doesn't include the pertinent section that I'm attempting to examine as it's not a DLL or such. If I use Sysinternal's VMMap program I can easily locate the pertinent data (specifically, starting address and size); but, I'm not sure how VMMap gets the data across the bottom half of the screen. I'm sure that I can walk through all memory addresses using ReadProcessMemory in small chunks so it doesn't fail; but, that seems to be silly. Any ideas on a better way to gather the data that VMMap shows?
Comment