这里所说的不是驱动对象,而是这个内核模块在内核内存空间中的地址。这是一个常用的技巧:在驱动对象中DriverStart域和DriverSize域分别记载着这个驱动对象所代表的内核模块在内核空间中的开始地址和大小。
			
posted @ 
2012-11-12 19:06 aya000 阅读(216) | 
评论 (0) | 
编辑 收藏error LNK2019: unresolved external symbol _RtlStringVPrintfWorkerW@20 referenced in function _RtlStringCchPrintfW
error LNK2019: unresolved external symbol _RtlStringValidateDestW@12 referenced in function _RtlStringCchPrintfW
sources文件加入库文件
TARGETLIBS= $(DDK_LIB_PATH)\ntstrsafe.lib
			posted @ 
2012-11-11 17:30 aya000 阅读(673) | 
评论 (0) | 
编辑 收藏
			1>避免创建不必要的对象
2>如果方法用不到成员变量,可以把方法声明为static,性能会提高15%到20%
3>避免使用getters/setters存取Field,可以把Field声明为public,直接访问
4>static的变量如果不需要修改,应使用static final 修饰符定义为常量
5>使用增强for循环语法——for(:)
6>私有内布类要访问外部类的Field或方法,可以把外部类的Field或方法声明为包访问权限
7>合理使用浮点数,浮点数比整型慢两倍
			
posted @ 
2012-11-03 22:30 aya000 阅读(251) | 
评论 (0) | 
编辑 收藏
			这大概是由xml文件中的编码规则决定要这么变换。
在xml文件中有以下几类字符要进行转义替换:
     
         
             | < | < | 小于号 | 
         
             | > | > | 大于号 | 
         
             | & | & | 和 | 
         
             | ' | ' | 单引号 | 
         
             | " | " | 双引号 | 
     
			posted @ 
2012-10-28 00:11 aya000 阅读(450) | 
评论 (0) | 
编辑 收藏(function(){     
    if(!/*@cc_on!@*/0)         
    return;     
    var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.length;
    while(i--){document.createElement(e[i])} 
})()  
//然后在head中引入该js 
<!--[if lt IE 9]> 
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
</script> 
<![endif]-->posted @ 
2012-08-16 15:03 aya000 阅读(213) | 
评论 (0) | 
编辑 收藏        .
        .
        .
         //改变状态 
			        this.addEventListener(MouseEvent.DOUBLE_CLICK,changeImg);	
        .   
        .
        .
	//改变
	public function changeImg():void {
			
	    arguments; //如果方法没有参数,则必须在方法中添加这个声明
			
	    if(this.source == img0) {
	        this.source = img1;
	    } else {
		            this.source = img0;
		      }
        }
posted @ 
2012-04-15 12:20 aya000 阅读(1468) | 
评论 (0) | 
编辑 收藏