Hi
(I've been wondering if this belong to "newbie" of "coding" section... feel free to move if i've chosen wrong)
I'm looking for a source of simple program that looks for open proces "foo.exe" and if found reads content from $111111 and $222222 of this process memory and stores it in two variables.
This'd be great if you could provide me with sample code and some good .pdf's about this topic
[C++] Reading from program memory
In C++, this would probably be referred to as "pointers". Pointers point to a memory space where a variable is held, so i imagine you should start there, maybe? try http://cplusplus.com Have fun
¯\_(ツ)_/¯ It works on my machine...
-
- cyber messiah
- Posts: 1201
- Joined: 30 Apr 2006, 16:00
- 17
- Location: 127.0.0.1
Correct me if i m wrong but if you are talking about getting the address of data from already running program by using another program, its not possible,even the compiler cannot create the code which can get the address of the variable it has not assigned itself.
This leaves you to direct addressing, but how will you know the content you are looking for is stored in which address?
I dunno but your question is not clear.
This leaves you to direct addressing, but how will you know the content you are looking for is stored in which address?
I dunno but your question is not clear.
I think he's asking about how to perform similar functions as in the program Tsearch, which can be found here: http://en.wikipedia.org/wiki/Tsearch
¯\_(ツ)_/¯ It works on my machine...
-
- cyber messiah
- Posts: 1201
- Joined: 30 Apr 2006, 16:00
- 17
- Location: 127.0.0.1
That's exacly i want to do - i found adresess ( using Tsearch) where game stores hp, ammo, armor ect and i want to make program that displays those values in separate window...gogeta70 wrote:I think he's asking about how to perform similar functions as in the program Tsearch, which can be found here: http://en.wikipedia.org/wiki/Tsearch