DDK&WDM学习 - HelloWDM,WDM驱动加载,INF文件

本文介绍了WDM驱动的INF文件结构,包括版本、源磁盘、类安装、目标目录、制造商和模型、DDInstall等关键部分,并展示了如何通过INF文件安装驱动。同时,讲解了驱动注册表项及安装流程,提供了实际的驱动示例代码。
摘要由CSDN通过智能技术生成

1, INF 文件

WDM的驱动程序是可以使用INF文件来进行安装的

首先奉上一个关于INF格式的MSDN链接

 

从《驱动开发技术详解》管盘中找到的INF的例子, 封号(;)表示注释

 

HelloWDMChapter01.inf

 


 

 

 

;; The Win2K DDK documentation contains an excellent INF reference.

 

;--------- Version Section ---------------------------------------------------

 

[Version]

Signature="$CHICAGO$"

Provider=RenRen_Device

DriverVer=11/1/2007,3.0.0.3

 

; If device fits one of the standard classes, use the name and GUID here,

; otherwise create your own device class and GUID as this example shows.

 

Class=RenRenDevice

ClassGUID={B988F087-B147-4626-9CC7-D83B7EB9D53A} ; Generated by GUID tool.

 

;IMPLEMENT_OLECREATE(<<class>>, <<external_name>>, 

;0xb988f087, 0xb147, 0x4626, 0x9c, 0xc7, 0xd8, 0x3b, 0x7e, 0xb9, 0xd5, 0x3a);

;{B988F087-B147-4626-9CC7-D83B7EB9D53A}

 

 

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------

 

; These sections identify source disks and files for installation

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值