- 博客(21)
- 收藏
- 关注
原创 masm中关于SEH的宏
try macro hidden_branch:req pushad ;; Save current state. mov esi, hidden_branch ;; Hidden branch address. push esi assume fs:nothing push dword ptr [fs:0]
2009-12-23 15:25:00
536
转载 NT内核的内存分配(PDE与PTE)
Nt Kernel Memory AllocationSome important Globals concerning memory.These globals are defined in ntos/mm/miglobal.c and setin ntos/mm/mminit.c and ntos/mm/i386/init386.c.
2009-07-03 14:01:00
2832
转载 转载:调试驱动程序 (WinDBG+VMware)
原始链接:http://hi.baidu.com/1ian9yu/blog/item/bbaf1301240d7ad3267fb524.html 第一部分(步骤):先统一名称,真实的操作系统叫HostOS,在VMware里虚拟的操作系统叫GuestOS。1.在VMware里安装好GuestOS;下载WinDBG并安装好。2.添加一个串口在关闭
2009-06-30 22:48:00
1938
转载 非托管与托管类型的对应
Wtypes.h中的非托管类型 非托管C语言类型 托管类名 说明 HANDLE void* System.IntPtr 32位 BYTE unsigned char System.Byte
2009-01-14 12:23:00
772
原创 #define的应用
最近在看JavaScript引擎“SpiderMonkey”的源代码,其中用#define 定义了许多复杂的宏,因此打算先总结一下#define的用法,然后再继续看其源代码。1. 定义常数 eg. #define P 3.14159262. 定义函数 eg. #define MAX(x, y) ((x) > (y)) ? (x) : (y) * 注意:在
2008-07-27 16:08:00
570
原创 SpiderMonkey引擎解析JavaScript脚本
SpiderMonkey是一个业界著名的JavaScript解释器引擎。它是由原来的NetScape公司开发的,目前源代码已经开放,随着著名的开源浏览器项目Mozilla一起发布。它本质上是一个JavaScript解释器引擎的API的库,是用标准C语言开发的。 打算用SpiderMonkey引擎做一个解析JavaScript脚本的工具。
2008-07-27 15:26:00
790
原创 VC.NET的多位数组
数组的定义:Array 第一个参数是数组的元素类型,第二个参数是数组的维数,也可以只带一个参数,那么默认为一维数组。例如:Array^ animals = gcnew array (2,3) { {"Dog", "White", "Big"}, {"Cat", "Black", "Small"}};定义了一个String^类型的2维数组,并事例化为一个2X3的String^
2007-12-25 22:08:00
383
原创 vc.net中的“装箱”(boxing)与“拆箱”(unboxing)
装箱和拆箱:任何值类型、引用类型可以和object(对象)类型之间进行转换。装箱转换是指将一个值类型隐式或显式地转换成一个System::Object类型,或者把这个值类型转换成一个被该值类型应用的接口类型(interface-type)。把一个值类型的值装箱,就是创建一个object实例并将这个值复制给这个object,装箱后的object对象中的数据位于堆中,栈中只存有数据的地址。被装箱的
2007-12-25 00:04:00
820
原创 .NET编程中遇到的问题
1.为什么有的字符串前加@?答: @可以使字符串取消转义.例如"c://windows//aa.txt"就可以写成@"c:/windows/aa.txt"
2007-12-23 19:08:00
378
原创 Package Module Library 的定义
package NAMESPACEDeclares the compilation unit as being in the given namespace. You can refer to variables and filehandles in other packages by prefixing the identifier with the package name and a d
2007-07-23 17:33:00
484
原创 RFC2616 HTTP1.1
Request 请求 A request message from a client to a server includes, within the first line of that message, the method to be applied to the resource, the identifier of the resource, and the protocol
2007-07-19 11:25:00
672
原创 perl web编程
用Apache和Perl建立一个网站1.CGI.pm1.1 查看已经安装的perl模块 : find `perl -e print "@INC" ` -name *.pm -print | grep CGI 确定CGI模块是否安装.1.2 配置Apache以允许CGI. ScriptAlias /cgi/ /home/ht
2007-07-17 11:33:00
1356
原创 perl hash operate
1.define a hash %hash={$key1, $value1,$key2,$value2........}; %hash = { $key1 => $value1, $key2 => $value2,
2007-07-08 10:32:00
600
原创 perl array operate
1.array indexing: $array[0] # the first element. $array[1] # the second element. $array[-1] # the last element. $array[-2] # the 2nd to last element.2. sequential number arr
2007-07-08 09:56:00
803
原创 mod_perl and apache websit
Session handling Load balancing Persistent database connections Advanced HTML templating Security
2007-07-05 16:13:00
403
原创 Linux 常用命令
1.view ip address: /sbin/ifconfig 2.view ports netstat -tapn #t-->tcp socket. u--> udp socket, #a--> all sockets (default: connected) . #p -> display PID/Program name f
2007-07-02 14:21:00
402
原创 linux 的备份和压缩命令
tar 命令 tar用来为文件或目录创建档案(备份文件)。create:tar -cvf mystuff.tar mystuff/tar -czvf mystuff.tgz mystuff/ #.tgz is the same thing as .tar.gzextracting:tar -xvf mystuff.tartar -xzvf mystuff.tgz 语法
2007-06-26 11:27:00
504
原创 Linux antivirus software collection
linux 反病毒软件的收集1。panda (熊猫,freeware)下载地址:http://www.pandasoftware.com/download/linux.htm?sitepanda=particularesdesigned to be managed from the command line or console To report bugs, please con
2007-06-26 10:29:00
477
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人