Jasper Hedge
Jasper Hedge

Reputation:

How to determine the memory layout of a process in Windows?

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, ...)

Upvotes: 4

Views: 1676

Answers (1)

Steve Steiner
Steve Steiner

Reputation: 5369

VirtualQueryEx is likely the function you want.

Upvotes: 6

Related Questions