tags:

views:

626

answers:

1

How can I determine what memory is accessible by a process, other than calling ReadProcessMemory() on every single byte/page/whatever to see if it wins or fails?

(I know it must be possible as several tools show this sort of information, e.g. IDA Pro debugger, WinHex, Sysinternals' Process Monitor, ...)

+5  A: 

VirtualQueryEx is likely the function you want.

Steve Steiner
Thanks that's perfect!