k i went to msdn in search of a way to read a memory location and came up with that function right there only one problem it has all the explanation at msdn but i don't get it all. So i was wondering if u guys could help.
K so here is what i got
for example the procces name is my.exe
The adress is 3C2D74 at client.dll (from cheat engine adress thing)
4 bytes if needed
Ok so when ever i have that in the table and i go into the game and choose ther process from cheat engine, then i do what ever i do in the game and i can see it is a boolean cause it is 0 or 1.
So if i was using
can something please tell me what it would look like to acces that, i spend more then 2 hours trying but no luck. thanks
O and if there are better ways to get a value from an andress i am listening.
That address makes no sense. and is probably an offset in the executable file. An executable should load that DLL, which you should find out about. This will give you two things to help you use that API. You can get a handle to the process which loads the DLL. And you can get the RVA of that variable, once it is loaded at some base address.
K i think i am getting somethign mixed up... If u ever used program called tsearch it is a memory editor ok well i searched for a value and got adress 3C2D74 and it said in client.dll. k if someine could explain how to get it right and what does RVA stand for?
Isn't this against the rules? (wait.. wtf? 'guidelines'?)
All i did is brought up and example because i really don't get the way memmory works and how to get the readproccesmemmory to work cause if i get taht one to work normally i can get the rest pretty easy thanks
First, this probably belongs in the Windows forum.
Second, I don't think using ReadProcessMemory() the way the OP uses it violates the rules. This can, of course, be debated all day.
OP: First, your post is written in such poor English answering it is guesswork. But we'll try. You mention BOOL, and being only 1 or 0. ReadProcessMemory returns a BOOL, and all the return value means is if the function suceeded or not. You should be passing (parameter #3) a buffer to store the data that is to be read from the other process. The value that was at that location is copied to your buffer. How are you calling ReadProcessMemory?
Reword your post into English, and perhaps provide a code example to aid the forum in finding your problem.
If you don't understand how memory in a modern OS works, then ReadProcessMemory is not for you. Too little to get right, too much to get wrong.
K then any guides i can search up. Even some kind of keywords i can use
I know how this works b/c i've ask befor... I think you if search on the forum you will find a post by me. If not just say and I can tell you more about it.
and CornedBee right... if you do mass up you can mass up your computer really bad.
How about... just thinking here, don't mind me. I'm not even here, really... but how about you first tried to learn C++ and how your operating system works, before trying to mess with it?
Just a thought.
EDIT: I just think the best way to learn about ReadProcessMemory() and how it works is to start with std::cout.
There can't be guides for every function in the Win32 API. (Our heads would spin.) Instead, get good with C or C++, learn how the language works, and after a bit of intro to Win32, you learn to read the manual pages which describe how to call the function, what to pass to it, and how/what it will return. (All easier said than done. Takes a few years, start to finish.)
Actually, I can do quite a bit of damage and my computer masses just about the same every time. And I try not to mass up too much - massing down is much more rewarding.
Well i think i know most of C++ just the way the language works. I ave done 2 years of C++ in my high school and we started doing Allegro but i have no clue about win32 and it be cool to learn a bit about it. Any place i can start?
One that is commonly cited around here.
and one that a mod from CProg made himself; it will teach you how to code Windows consoles in API, and a few other things.