Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
发现问题了。结果你必须从地址中减去 5 才能正确计算它,因为它是相对地址,不是从指令末尾开始,而是从开始开始。
Found the problem. Turns out you have to subtract 5 from the address to calculate it correctly, since it's the relative address not from the end of the instruction but from the beginning.
对于 MSVC 微软研究院有一个名为“Detours”的库:http://research.microsoft.com/en-us/projects/detours/您可能想使用它,因为它已经可用,而且我认为 32 位版本是免费的。
for MSVC Microsoft Research has library called "Detours":http://research.microsoft.com/en-us/projects/detours/You may want to use it since it is already available and I think 32 bit version is free.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
发现问题了。结果你必须从地址中减去 5 才能正确计算它,因为它是相对地址,不是从指令末尾开始,而是从开始开始。
Found the problem. Turns out you have to subtract 5 from the address to calculate it correctly, since it's the relative address not from the end of the instruction but from the beginning.
对于 MSVC 微软研究院有一个名为“Detours”的库:
http://research.microsoft.com/en-us/projects/detours/
您可能想使用它,因为它已经可用,而且我认为 32 位版本是免费的。
for MSVC Microsoft Research has library called "Detours":
http://research.microsoft.com/en-us/projects/detours/
You may want to use it since it is already available and I think 32 bit version is free.