代码改变世界

INF Models Section

2012-04-30 09:01  java20130722  阅读(259)  评论(0)    收藏  举报

INF Models Section

形如:

[models-section-name] |

[models-section-name.TargetOSVersion]  (Windows XP and later versions of Windows)

device-description=install-section-name[,hw-id][,compatible-id...]

[device-description=install-section-name[,hw-id][,compatible-id]...] ...


Device-description

标识要安装的设备。形如:"quoted string"%strkey%


Install-section-name

指定一个INF install section的域名(name of the INF install sections )。详情请看:INF DDInstall Section 


Hw-id

指定一个设备制造商定义的硬件ID(hardware ID string)PnP管理器用这个项来找匹配的INF文件。

硬件ID(hardware ID string)有三种格式:

1. enumerator\enumerator-specific-device-id 

2. *enumerator-specific-device-id 

3. device-class-specific-ID 


compatible-id 

指定一个设备制造商定义的兼容ID字符串(compatible ID string)。同时可以指定多个compatible-id,之间用逗号隔开。


实例:

[Manufacturer]

%StdMfg%    =StdMfg         ; (Standard types)

%MSMfg%     =MSMfg          ; Microsoft

; ... %otherMfg% omitted here

[StdMfg]  ; per-Manufacturer Models section 

  ; Std serial mouse

%*pnp0f0c.DeviceDesc%= Ser_Inst,*PNP0F0C,SERENUM\PNP0F0C,SERIAL_MOUSE

  ; Std InPort mouse

%*pnp0f0d.DeviceDesc%      = Inp_Inst,*PNP0F0D

; ... more StdMfg entries