系统关闭窗体的事件顺序为: OnCloseQuery ----> OnClose ----> OnDestroy下面的代码说明问题:[delphi]view plaincopyunitUnit3;interfaceusesWindows,Messages,SysUtils,Variants,Clas... Read More
posted @ 2015-12-29 23:56
findumars
Views(843)
Comments(0)
Diggs(0)
dll 与 exe 之间的通讯方式有很多种, 本文采用回调函数的方法实现, 本文也将研究多线程,多模块的情况下,回调函数所在的线程, 啥也不说了,先附上代码:下面的是dll模块的的, dll的工程文件:[delphi]view plaincopylibraryDllAPP;useswindows,... Read More
posted @ 2015-12-29 23:52
findumars
Views(1980)
Comments(0)
Diggs(0)
在我们的程序中,数据结构还有变量等等都需要占有内存,在很多系统中,它都要求内存分配的时候要对齐,这样做的好处就是可以提高访问内存的速度。我们还是先来看一段简单的程序: 程序一1#include2usingnamespacestd;34structX15{6inti;//4个字节7charc1;... Read More
posted @ 2015-12-29 23:50
findumars
Views(406)
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(761)
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(3100)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号