先用OpenProcess打开目标进程,再把句柄传进去就OK了。 http://blog.csdn.net/aqtata/article/details/18361209 Read More
posted @ 2016-03-14 22:51 findumars Views(1040) Comments(0) Diggs(0)
这是一个Delphi的函数声明,看上去很简单,只有一个参数而已,但是真实情况呢?在编译成二进制代码后,实际上函数的参数已经有2个了! 为了更详细的说明问题,先用Delphi写一个DLL,导出一个接口,接口有一个Show方法。 调用方用C++编写 运行后直接弹出一个内存错误   出错语句在DLL中 以 Read More
posted @ 2016-03-14 22:49 findumars Views(358) 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(2405) 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(388) Comments(0) Diggs(0)
很多浏览器有这种功能,实现原理都是一样。发声源基本都来自Flash,比如Flash游戏啦,视频播放器啦等等 而Flash的发声都是通过winmm.dll::waveOutWrite函数来完成,所以,我们只要能“接管”这个函数就行了 下面的代码是以前写的一个模块,针对Flash的静音,代码写的比较粗糙 Read More
posted @ 2016-03-14 22:41 findumars Views(585) Comments(0) Diggs(0)