News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

pages allocated to process

Started by tofani_chokro, May 27, 2006, 09:44:13 PM

Previous topic - Next topic

tofani_chokro

Hi
I am using winxp and intel processor ,

How do i access all the pages that are allocated to a process at that instance of time
i have the no of pages allocated ,

i want to read that values form those pages and examine them,
How do i get the starting page of a process in the memory ?
thanks

Ossa

Why would you want to do this?

The only reason that I can see is that you want to write a debug program, in which case, you should use DebugActiveProcess or use CreateFile with the DEBUG_PROCESS flag and then use ReadProcessMemory function. If you are writing a debugger, you should already know where the first page is, as you can get that from the PE headers.

Other than writing a debug program, I can't think of any other legal use...

Ossa
Website (very old): ossa.the-wot.co.uk