一个典型的Windows 2000 INF文件
[Version]
Signature=”$Windows NT$”
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%YsuLyw%
LayoutFile=layout.inf
DriverVer=12/12/2001,1.0.1.0
[DestinationDirs] ;文件复制目录
DefaultDestDir=12 ;%windir% /system32/drivers
[Manufacturer]
%YsuLyw%=YsuLyw ;调用Models节
[YsuLyw] ;Models节开始
%USB/VID_xxxx&PID_xxxx.DeviceDesc%=LYWUSB.Dev,USB/VID_xxxx&PID_xxxx
;xxxx:16进制数值
[LYWUSB.Dev.NT] ;DDInstall字节开始
CopyFiles=LYWUSB.Files.Ext ;调用CopyFiles节
CopyFiles=LYWUSB.Files.Inf ;调用CopyFiles节
AddReg=LaunchRegSection ;调用AddReg节
[LYWUSB.Files.Ext] ;CopyFiles节开始
Thermo.sys
[LYWUSB.Files.Inf] ;CopyFiles节开始
Thermo.inf
[LaunchRegSection] ;AddReg节开始
HKR,”Parameters”,”Coordinates”,FLG_ADDREG_TYPE_DWORD,0
[LYWUSB.Dev.NT.Services];DDInstall.Services节开始
AddService=usbLYW,2,LYWUSB_Serivce_Inst
[LYWUSB_Service_Inst]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12% /thermo.sys
[Strings]
YsuLyw=”YsuLyw Products”
USB/VID_xxxx&PID_xxxx.DeviceDesc=”YsuLyw Products(7C01A_xxxx__ PID_xxxx)”
;xxxx:16进制数值