修改程序以假按下按钮(Modifying a program to fake a button press)
我有一个MFC应用程序(没有源代码)打开一个带有“更新”按钮的窗口,然后在单击后执行很长的更新。
我想修改程序,以便在创建窗口时(或其他地方,如DoModal),会向程序发送一条消息,使其认为按下按钮。
在Ida Pro和OllyDbg,我一直在玩这个有一段时间没有用。 我看了可能使用PumpMessage,但这并没有带来任何成功。
任何建议?
I have an MFC application that I was given (without source code) which opens a window with an 'Update' button, which then performs a very long update after being clicked.
I'd like to modify the program so that when the window is created (or somewhere else such as DoModal), a message is sent to the program to make it think that the button was pressed.
I've been toying around with this for a while in Ida Pro and OllyDbg to no avail. I looked at possibly using PumpMessage, but this did not bring any success.
Any advice?
原文:https://stackoverflow.com/questions/977045
最满意答案
您可以在同一文件夹中重新生成项目,Yeoman将提示您文件冲突(因此您将看到正在发生的变化,您将准备好解决这些冲突)。 然后,只需更改新代码,以便在您转移原始应用代码时与您的应用匹配。
You can regenerate the project in the same folder and Yeoman will prompt you on file conflict (so you'll see what is changing and you'll be ready to fix these conflicts). Then, just make changes to the new code so it match your app if you diverted from the original app code.
相关问答
更多-
我认为你应该看看流利的NHibernate 。 生成映射总能让你达到80%的标准,而且你还必须定制才能获得你想要的。 Fluent-NHibernate允许您使用编译安全和重构友好的API来映射实体。 I think you should look at Fluent NHibernate instead. Generating mappings always gets you to the 80% mark, and you still have to customize to get what you ...
-
Django密码生成器(Django Password Generator)[2023-07-09]
您也可以使用内置函数make_random_password for user in new_users: password = User.objects.make_random_password() user.set_password(password) # email/print password You can also use the built in function make_random_password for user in new_users: pass ... -
代码生成器(.net)(Code generator (.net))[2022-03-31]
你究竟在做什么? 我想这也取决于你从哪里尝试生成代码(模型)。 Codesmith和MyGeneration的优点是,它们提供多种选项供您生成代码 - 例如,在MyGeneration中,您可以使用各种语言编写模板。 MyGeneration可以提供任何数据库和许多内置的生成器脚本的元模型 - 因此,如果您想生成SP,最简单的方法是使用MyGeneration的生成器 - 您可以在那里为CRUD SP找到生成器。 如果你想修改生成器,它还提供了一个相当不错的编辑器。 如果你正在构建一个DSL或其他东西(我的 ... -
您可以在同一文件夹中重新生成项目,Yeoman将提示您文件冲突(因此您将看到正在发生的变化,您将准备好解决这些冲突)。 然后,只需更改新代码,以便在您转移原始应用代码时与您的应用匹配。 You can regenerate the project in the same folder and Yeoman will prompt you on file conflict (so you'll see what is changing and you'll be ready to fix these conf ...
-
目标C的代码生成器(Code generator for Objective C)[2022-09-22]
这个基于Objective-C的SQLite仓库有一个简单的bash脚本,它将读取SQLite数据库并为您生成适当的ORM模型。 该URL是https://github.com/ziminji/objective-c-sql-query-builder 您只需配置一个小的属性文件,该文件将告诉bash脚本SQLite数据库在硬盘上的位置。 This Objective-C based repository for SQLite has a simple bash script that will read ... -
对于ZF1,您可以使用Zodeken,它提供了coplete crud界面。 zf2正在开发中。 https://code.google.com/p/zodeken/ https://code.google.com/p/zodeken2/ For ZF1, you can use Zodeken, it provide coplete crud interfaces. For zf2 is in developing. https://code.google.com/p/zodeken/ https://c ...
-
那么有两个版本并在运行时和ui中绑定它们。 或者我不知道是否还在工作http://kthoms.wordpress.com/2011/09/28/moving-an-xtend-generator-into-its-own-plugin/ (至少这个想法应该仍然有效) what about having two versions and bind them in runtime and ui. alternatively i dont know if is still working http://ktho ...
-
Slick 2生成器:不同模式上具有相同名称的表(Slick 2 generator: tables with same names on different schemas)[2022-06-01]
这是一个众所周知的问题: https : //github.com/slick/slick/issues/593 您应该能够通过自定义代码生成器来解决它。 在那里有一次尝试。 That's a know issue: https://github.com/slick/slick/issues/593 You should be able to work around it by customizing the code generator. There is an attempt in there. -
有一些生成器可以生成角度组件api文件吗?(Have some generator can gener angular component api document? [closed])[2021-09-19]
http://yeoman.io/generators/上有很多选项 对于文档,可能是以下之一: https://github.com/Quramy/generator-ngdoc https://github.com/RobLoach/generator-docpad 将满足您的需求。 但请转到搜索页面。 有很多选择。 There are a lot of options on http://yeoman.io/generators/ For documentation, maybe one of: ht ... -
好的我明白了。 那么,据我所知,没有任何Python的代码生成器。 有一个很好的介绍如何在这里推出自己的。 实际上,这是一个未被充分利用的环境部分,我想这是因为它需要你使用IDE来编译项目,因为似乎只有IDE知道这些“生成器”,但MSBuild忽略了它们。 OK, I see. Well, as far as I know there isn't any code generator for Python. There is a good introduction on how to roll your o ...