如何确定Windows中进程的内存布局? [英] How to determine the memory layout of a process in Windows?

查看:161
本文介绍了如何确定Windows中进程的内存布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了在每个字节/页/任何地方调用ReadProcessMemory()来查看其成功与失败之外,我如何确定进程可访问的内存是什么?

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?

(我知道这是有可能的,因为有几种工具可以显示此类信息,例如IDA Pro调试器,WinHex,Sysinternals的Process Monitor等)

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

推荐答案

VirtualQueryEx is likely the function you want.

这篇关于如何确定Windows中进程的内存布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆