问题描述
有一个应用程序使用GetFileVersion api来检索exe文件的产品版本。我想改变那个api的返回值。我无法从文件更改产品版本,因为我不应该修改它。我不需要实际更改返回值,我可以更改文件名参数或类似的东西。我试过这些:
- 使用函数挂钩,失败,太复杂,
- 使用代理dll进行winapi调用,失败,再过于复杂,
- 使用反汇编程序和修补参数值,失败。
任何简单的想法?
谢谢
Hi,
There is an application which uses GetFileVersion api to retrive product version of an exe file. I want to change the return value from that api. I can't change product version from file because i shouldn't modify it. I don't need to change the return value actually, i can change file name parameter or something like that. I've tried these:
- Using function hooking, failed, too complicated,
- Using proxy dll for winapi calls, failed, again too complicated,
- Using dissassembler and patching parameter value, failed.
Any easy ideas?
Thanks
推荐答案
这篇关于更改windows api调用的返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!