I've been looking for any Windows functions to view or dump memory, or the process to do this manually. I can not find info on this anywhere online.
How would I get a dump of a process's memory like the one in Olly's memory window?
Edit for clarification:
I wanted to be able to retrieve an address's base page address. The memory map was the best relation I had to this, as it gives page info such as size, starting address, permissions, etc. VirtualQueryEx()
solved the problem.
I ended up iterating through the pages until I found one in which my target address fell.
I tend to ask for what I think would be the solution rather than laying out my problem and taking suggestions.
Thank you all for the help.
// Iterate through pages
for(base = NULL;
WINDOWS::VirtualQuery(base, info, sizeof(*info)) == sizeof(*info);
base += info->RegionSize) {
if(p > base && p < base + info->RegionSize) {
found = true;
break;
}
}