阅读:1496回复:3
麻烦大家帮忙看看一个inf文件?
这个驱动是一个虚拟串口的驱动(USB设备转为串口),我现在不想要它的转串口功能,而是安装时只安装它的USB功能,请问下面的inf文件该如何改?
;//////////////////////////////////////////////////////////////////// ;// SMJUSBCOM.INF ;//////////////////////////////////////////////////////////////////// [Version] Signature="$CHICAGO$" Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%MFG% DriverVer=08/23/2002,1.0.0.0 [SourceDisksNames] 1=%DISK1%,"",1 [SourceDisksFiles] SMJUSB.SYS=1 SMJUSBCOM.SYS=1 SMJUSBCOM.INF=1 [DestinationDirs] SMJUSB.Files.SYS = 10,System32\Drivers SMJUSBCOM.Files.SYS = 10,System32\Drivers SMJUSBCOM.Files.INF = 10,INF [Manufacturer] %MFG%=SECTION_0 [SECTION_0] %USB\VID_0519&PID_0002.DeviceDesc%=SMJUSBCOM.Dev, USB\VID_0519&PID_0002 [SMJUSBCOM.Dev.NT] CopyFiles=SMJUSB.Files.SYS CopyFiles=SMJUSBCOM.Files.SYS CopyFiles=SMJUSBCOM.Files.INF AddReg=SMJUSB.AddReg [SMJUSBCOM.Dev.NT.HW] AddReg=SMJUSBCOM.HW.AddReg [SMJUSBCOM.Dev.NT.Services] Addservice = SMJUSB,0x00000002,SMJUSB.AddService Addservice = SMJUSBCOM,,SMJUSBCOM.AddService [SMJUSB.AddService] DisplayName = %SMJUSBDISPLAYNAME% ServiceType = 1 ;SERVICE_KERNEL_DRIVER StartType = 3 ;SERVICE_DEMAND_START ErrorControl = 1 ;SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\SMJUSB.SYS LoadOrderGroup = Base [SMJUSBCOM.AddService] DisplayName = %SMJUSBCOMDISPLAYNAME% ServiceType = 1 ;SERVICE_KERNEL_DRIVER StartType = 3 ;SERVICE_DEMAND_START ErrorControl = 1 ;SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\SMJUSBCOM.SYS LoadOrderGroup = PNP Filter [SMJUSB.AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,SMJUSB.SYS HKR,,EnumPropPages32,,"MSPorts.dll,SerialPortPropPageProvider" [SMJUSBCOM.HW.AddReg] HKR,,"UpperFilters",0x00010000,"SMJUSBCOM" [SMJUSB.Files.SYS] SMJUSB.SYS [SMJUSBCOM.Files.SYS] SMJUSBCOM.SYS [SMJUSBCOM.Files.INF] SMJUSBCOM.INF [Strings] MFG="Star Micronics" USB\VID_0519&PID_0002.DeviceDesc="SMJ USB Device" SMJUSBDISPLAYNAME="SMJ USB Device Class Driver" SMJUSBCOMDISPLAYNAME="SMJ USBCOM Driver" DISK1="SMJ USBCOM Driver Install Disk1" 谢谢!! |
|
最新喜欢:buckto... |
沙发#
发布于:2009-12-17 13:13
好冷清啊... |
|
板凳#
发布于:2009-12-17 13:37
转串口由两部分,一个是安装,一个是创建设备.你检查一下它的classid看是啥设备
|
|
|
地板#
发布于:2009-12-17 18:29
我改成如下,但安装驱动时返回错误:设备启动失败(错误代码 10)。
;//////////////////////////////////////////////////////////////////// ;// SMJUSB.INF ;//////////////////////////////////////////////////////////////////// [Version] Signature="$CHICAGO$" Class=Port ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%MFG% DriverVer=08/23/2002,1.0.0.0 [SourceDisksNames] 1=%DISK1%,"" [SourceDisksFiles] SMJUSB.SYS = 1 [DestinationDirs] DefaultDestDir = 12 ;System32\Drivers SMJUSB.Files.SYS = 12 ;System32\Drivers [Manufacturer] %MFG%=SECTION_0 [SECTION_0] %USB\VID_0519&PID_0002.DeviceDesc%=SMJUSB.Dev, USB\VID_0519&PID_0002 [SMJUSB.Dev.NT] CopyFiles=SMJUSB.Files.SYS AddReg=SMJUSB.AddReg [SMJUSB.Dev.NT.HW] AddReg=SMJUSB.HW.AddReg [SMJUSB.Dev.NT.Services] Addservice = SMJUSB,0x00000002,SMJUSB.AddService [SMJUSB.AddService] DisplayName = %SMJUSBDISPLAYNAME% ServiceType = 1 ;SERVICE_KERNEL_DRIVER StartType = 3 ;SERVICE_DEMAND_START ErrorControl = 1 ;SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\SMJUSB.SYS LoadOrderGroup = Base [SMJUSB.AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,SMJUSB.SYS HKR,,EnumPropPages32,,"MSPorts.dll,SerialPortPropPageProvider" [SMJUSB.HW.AddReg] HKR,,"UpperFilters",0x00010000,"SMJUSB" [SMJUSB.Files.SYS] SMJUSB.SYS [Strings] MFG="Star Micronics" USB\VID_0519&PID_0002.DeviceDesc="SMJ USB Device" SMJUSBDISPLAYNAME="SMJ USB Device Class Driver" SMJUSBCOMDISPLAYNAME="SMJ USBCOM Driver" DISK1="SMJ USBCOM Driver Install Disk1" |
|