是否可以从使用dbghelp库获得的地址中读取值并将其写入地址 [英] Is it possible to read and write value to a address from the address obtained using dbghelp library

查看:71
本文介绍了是否可以从使用dbghelp库获得的地址中读取值并将其写入地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样一种情况,即使用dbghelp库获取变量的地址.
我先加载符号,然后使用SymFromName获取变量的地址.
现在,我有一个独立运行的exe,其中必须设置变量的值.
我可以从dbghelp库获得的地址中设置并获取变量的值吗?

I have scenario where in im getting the address of a variable using dbghelp library.
Im loading the symbols and then using SymFromName to get the address of the variable.
Now i have a exe running independently in which i have to set the value of the variable.
Can i set and get the values of the variable from address obtained from dbghelp library??

推荐答案

恐怕您做不到.独立exe使用单独的地址空间,并且无法访问彼此的变量.

除非您诉诸共享内存映射. http://msdn.microsoft.com/en-us/library/aa366878 (v = VS.85).aspx [ http://msdn.microsoft.com/en-us/library/aa365574%28v = VS.85%29.aspx [ ^ ]
I am afraid you can''t. Independent exe''s use separate address spaces and can''t access each other''s variables.

Unless you resort to shared memory mapping. http://msdn.microsoft.com/en-us/library/aa366878(v=VS.85).aspx[^]

Or use another way of communicating between both applications. http://msdn.microsoft.com/en-us/library/aa365574%28v=VS.85%29.aspx[^]


这篇关于是否可以从使用dbghelp库获得的地址中读取值并将其写入地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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