用过一些日历软件的小伙伴应该都知道它们都实现了在时钟窗口上的Hook,也就是屏蔽了系统原有的功能,实现自己的功能 某日历软件Hook时钟窗口后的效果   经过一番研究,发现原理其实很简单,就是注入DLL到时钟窗口进程(explorer.exe),然后接管窗口处理过程实现自己的功能 第一步是判断当前操 Read More
posted @ 2016-03-14 22:55 findumars Views(2422) Comments(0) Diggs(0)
  先用OpenProcess打开目标进程,再把句柄传进去就OK了。 http://blog.csdn.net/aqtata/article/details/18361209 Read More
posted @ 2016-03-14 22:51 findumars Views(1030) Comments(0) Diggs(0)
这是一个Delphi的函数声明,看上去很简单,只有一个参数而已,但是真实情况呢?在编译成二进制代码后,实际上函数的参数已经有2个了! 为了更详细的说明问题,先用Delphi写一个DLL,导出一个接口,接口有一个Show方法。 调用方用C++编写 运行后直接弹出一个内存错误   出错语句在DLL中 以 Read More
posted @ 2016-03-14 22:49 findumars Views(355) Comments(0) Diggs(0)
这个问题捣鼓了两天,现在终于解决了,做个笔记分享给大家,以免走弯路 起初,我的想法是在DLL中写一个interface并从函数中导出这个interface,像这样的代码 [delphi] view plain copy ICom1 = interface function Show(V1, V2:  Read More
posted @ 2016-03-14 22:47 findumars Views(2386) Comments(1) Diggs(0)
原文:http://blog.csdn.net/dropme/article/details/6253528   窗体上放一个ApplicationEvent控件,OnMessage事件中这么写   http://blog.csdn.net/aqtata/article/details/866928 Read More
posted @ 2016-03-14 22:45 findumars Views(387) Comments(0) Diggs(0)