形如:
[models-section-name]|
[models-section-name.TargetOSVersion](WindowsXPandlaterversionsofWindows)
device-description=install-section-name[,hw-id][,compatible-id...]
[device-description=install-section-name[,hw-id][,compatible-id]...]...
Device-description
标识要安装的设备。形如:"quotedstring"或%strkey%。
Install-section-name
指定一个INFinstallsection的域名(nameoftheINFinstallsections)。详情请看:INFDDInstallSection
Hw-id
指定一个设备制造商定义的硬件ID串(hardwareIDstring)。PnP管理器用这个项来找匹配的INF文件。
硬件ID号(hardwareIDstring)有三种格式:
1.enumerator\enumerator-specific-device-id
2.*enumerator-specific-device-id
3.device-class-specific-ID
compatible-id
指定一个设备制造商定义的兼容ID字符串(compatibleIDstring)。同时可以指定多个compatible-id,之间用逗号隔开。
实例:
[Manufacturer]
%StdMfg%=StdMfg;(Standardtypes)
%MSMfg%=MSMfg;Microsoft
;...%otherMfg%omittedhere
[StdMfg];per-ManufacturerModelssection
;Stdserialmouse
%*pnp0f0c.DeviceDesc%=Ser_Inst,*PNP0F0C,SERENUM\PNP0F0C,SERIAL_MOUSE
;StdInPortmouse
%*pnp0f0d.DeviceDesc%=Inp_Inst,*PNP0F0D
;...moreStdMfgentries
本文深入解析了INFModelsSection在设备驱动安装过程中的应用,详细阐述了安装段名、目标操作系统版本、设备描述、硬件ID、兼容ID等关键元素的功能与配置方法。
1880

被折叠的 条评论
为什么被折叠?



