文档详情

文件系统驱动编程基础篇之5.doc

发布:2017-02-23约1.16万字共17页下载文档
文本预览下载声明
文件系统驱动编程基础篇之5——注册表与Inf 关键字:文件系统驱动编程,注册表与Inf 作者:wskjuf 更新:2008-10-06 22:13:29 浏览:13221 文件系统驱动编程基础篇之五——注册表与Inf 一、前略 本系列文章为业余编程爱好者而写,仅仅作为初学者的一个借鉴,真正的精华存在于参考资料*中。知识的积累将经历从薄到厚,再从厚到薄的反复过程,为了打下牢固的基础,请读者务必在阅读本文的基础上花费必要的时间完成参考资料。 参考资料*: 1.《Programming the Microsoft Windows driver model》第一版(当前阶段主要阅读资料,阅读第二章一小节、第二章三小节、第三章五小节、第十二章) 2.《Registry Keys for Drivers》 3.《Windows上获得IP地址的四种方法》 4.《Device Information Sets》 5.《Using a Device Interface》 6.《Using Device Installation Functions》 7.《From the Lab: Mapping USB devices via LNK files》 8.《Getting a file handle of a USB volume from its vid/pid/serial number》 9.《Fill Level field in DEVICE_NODE structure》 10.《Tracing USB Device artefacts on Windows XP operating system for forensic purpose》 11.《INF Models Section》关于硬件ID的命名规则部分 12. devids.txt 阅读基础:不限。 本章目的:了解注册表在驱动编程的重要作用,阅读并学会编写简单的Inf。 二、注册表的配置 注册表以树形方式存储配置信息,树节点称为键(key),键可以包含子键(subkey)和称为值(value)的数据项。 一)需要关注的几种键(注:硬件键、类键、设备接口类应是所列位置下的子键): 二)第3点中的服务键的写法与其他键有所不同,它以\REGISTRY打头,这是内核模式下根键的规定写法。 User-mode Handle Corresponding Object Name HKEY_LOCAL_MACHINE \Registry\Machine HKEY_USERS \Registry\User HKEY_CLASSES_ROOT No kernel-mode equivalent HKEY_CURRENT_USER No simple kernel-mode equivalent, but see Registry Run-Time Library Routines 三)服务的启动类型,如Start为3表示按需启动,scm在基础篇四已经有所论述了。 启动类型 注释 SERVICE_AUTO_START 0 A service started automatically by the service control manager(scm) during system startup. For more information, see Automatically Starting Services. SERVICE_BOOT_START 0 A device driver started by the system loader. This value is valid only for driver services. SERVICE_DEMAND_START 0 A service started by the service control manager when a process calls the StartService function. For more information, see Starting Services on Demand. SERVICE_DISABLED 0 A service that cannot be started. Attempts to start the service result in the error code ERROR_SERVICE_DISABLED. SERVICE_SYSTEM_START 0 A device dri
显示全部
相似文档