Original Post
When reading a process's memory via ReadProcessMemory(HANDLE,LPCVOID lpBaseAddress,LPVOID,DWORD,PDWORD), how am I able to know what the begining of the process's memory is? (for lpBaseAddress param when reading the process's memory) I know they are generally 0x400000, but that is not always the case and it is causing me problems.
And problem 2: how do I know how much memory the process is using? Right now I am just attempting to read a very large amount of memory and using the last param to see how much was actually read, but this is crappy because I need to alocate a huge amount of memory, just in case that much will be read, then trim it based on how much was actually read.
So, the short version of the question is:
How do I get what address a program's memory starts at and
How do I know how much memory the program is using
Thanks! .sen
[edited by - Senses777 on May 6, 2003 12:04:37 AM]