The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: tofani_chokro on May 27, 2006, 09:44:13 PM

Title: pages allocated to process
Post by: tofani_chokro on May 27, 2006, 09:44:13 PM
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
Title: Re: pages allocated to process
Post by: Ossa on May 27, 2006, 10:13:51 PM
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