Sign in to follow this  
lemontree

[Windows XP] Memory starting address

Recommended Posts

lemontree    122
With witch API Call, can i find the starting address of a process. I need to know for finding offsets. Regards [Edited by - lemontree on October 17, 2004 3:25:08 AM]

Share this post


Link to post
Share on other sites
Fruny    1658
There is nothing in C++ which will allow you to find that.

Do specify what platform you are interested in (and change your thread title accordingly).

Share this post


Link to post
Share on other sites
Fruny    1658
Quote:
Original post by lemontree
Ok, but how can i read something (ex. health) out a memory address, if it`s dynamic.


When you dynamically allocate memory, you get a pointer, which is the address of the memory block you've allocated, and which you then use to access the data you put in that memory block.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
There's some debugging related functions somewhere. They'll let you see what pages a program is using, and what they're reserved for, and let you read or write data to them (assuming they aren't read only). I don't remember what they are, but they're there.

Just a note, though: The memory space of a program is virtual. Even if you knew where something was in that program, you couldn't write to that pointer directly from your program; it would point to something else entirely from your program's perspective.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this