dll 与 exe 之间的通讯方式有很多种, 本文采用回调函数的方法实现, 本文也将研究多线程,多模块的情况下,回调函数所在的线程, 啥也不说了,先附上代码:下面的是dll模块的的, dll的工程文件:[delphi]view plaincopylibraryDllAPP;useswindows,... Read More
posted @ 2015-12-29 23:52 findumars Views(2005) Comments(0) Diggs(0)
在我们的程序中,数据结构还有变量等等都需要占有内存,在很多系统中,它都要求内存分配的时候要对齐,这样做的好处就是可以提高访问内存的速度。我们还是先来看一段简单的程序: 程序一1#include2usingnamespacestd;34structX15{6inti;//4个字节7charc1;... Read More
posted @ 2015-12-29 23:50 findumars Views(407) Comments(0) Diggs(0)
以delphi为例:TTest = recordc1: char;i1: Integer;c2: char;c3: Char;end;这个结构如果用sizeof取其占用的内存大小,是多少呢,是1+4+1+1=7么,不是,是4*3 = 12; 这是因为32位编译的时候,默认结构会自动内存对齐(32bi... Read More
posted @ 2015-12-29 23:49 findumars Views(767) Comments(0) Diggs(0)
创建时间:2003-03-26文章来源:http://www.whitecell.org文章提交:sinister(jiasys_at_21cn.com)内核级HOOK的几种实现与应用Author:sinisterEmail:sinister@whitecell.orgHomePage:http:/... Read More
posted @ 2015-12-29 23:38 findumars Views(3103) Comments(0) Diggs(0)
DrawDib函数组的使用 Microsoft的针对与设备无关位图(DIB位图),在其WIN32 SDK的Multimedia中提供了一组绘制DIB位图的高性能函数组──DrawDib函数组。DrawDib函数组是一组不依赖于图形设备接口(GDI)函数,而直接操作显存的函数组。它们支持8位、16位、... Read More
posted @ 2015-12-29 23:37 findumars Views(811) Comments(0) Diggs(0)