打印

inf文件如何写

[复制链接]
953|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
zhanglli|  楼主 | 2014-2-14 21:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
USB, ev, vi, se, AD
nf文件内容如下:
[Version]
Signature="$CHICAGO$"
Class=USB
provider=%Cypress%
LayoutFile=layout.inf
[Manufacturer]
%Cypress%=Cypress
[Cypress]
; Entry point for the widget before firmware download and renumeration
; This VID/PID combination will call the EZ-Loader driver and download
; your firmware.
;

%USB\VID_04B4&PID_8613.DeviceDesc%=EZUSB.Dev, USB\VID_04B4&PID_8613
%USB\VID_0547&PID_1002.DeviceDesc%=EZUSBDEV.Dev, USB\VID_0547&PID_1002
;
;%USB\VID_04B4&PID_1004.DeviceDesc%=EZUSB.Dev,USB\VID_04B4&PID_1004
; ; This VID/PID is used by several of the EZ-USB development kit
; samples. This device is bound to the general purpose driver. ;
;%USB\VID_04B4&PID_1005.DeviceDesc%=EZUSBDEV.Dev, USB\VID_04B4&PID_1005
[PreCopySection]
HKR,,NoSetupUI,,1
[DestinationDirs]
EZUSB.Files.Ext = 10,System32\Drivers
EZUSB.Files.Inf = 10,
EZUSBDEV.Files.Ext = 10,System32\Drivers
EZUSBDEV.Files.Inf = 10,INF
[EZUSB.Dev]
;CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf
AddReg=EZUSB.AddReg
[EZUSB.Dev.NT]
; copyfiles commented out for Win2K to avoid user intervention during install
CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf
AddReg=EZUSB.AddReg
[EZUSB.Dev.NT.Services]
Addservice = EZUSB, 0x00000002, EZUSB.AddService
[EZUSB.AddService]
DisplayName    = %EZUSB.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 2                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\ezusb.sys
LoadOrderGroup = Base
[EZUSB.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ezusb.sys
[EZUSB.Files.Ext]
ezusb.sys
[EZUSB.Files.Inf]
EZWin2K.Inf
;[EZUSBDEV.Dev]
;CopyFiles=EZUSBDEV.Files.Ext, EZUSBDEV.Files.Inf
;AddReg=EZUSBDEV.AddReg
;;
[EZUSBDEV.Dev]
;CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf
AddReg=EZUSBDEV.AddReg
[EZUSBDEV.Dev.NT]
;copyfiles commented out for Win2K to avoid user intervention during install ;
CopyFiles=EZUSBDEV.Files.Ext, EZUSBDEV.Files.Inf
AddReg=EZUSBDEV.AddReg
[EZUSBDEV.Dev.NT.Services]
Addservice = EZUSBDEV, 0x00000002, EZUSBDEV.AddService
[EZUSBDEV.AddService]
DisplayName = %EZUSBDEV.SvcDesc%
ServiceType =1 ; SERVICE_KERNEL_DRIVER
StartType =2 ; SERVICE_AUTO_START
ErrorControl =1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\ezloader.sys
LoadOrderGroup = Base
[EZUSBDEV.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ezloader.sys
[EZUSBDEV.Files.Ext]
ezloader.sys
[EZUSBDEV.Files.Inf]
EZWin2K.Inf
沙发
lium| | 2014-2-14 21:13 | 只看该作者
什么问题啊

使用特权

评论回复
板凳
zhanglli|  楼主 | 2014-2-14 21:14 | 只看该作者
inf文件问题:驱动只加载了一个驱动(前面的)
请各位大牛帮忙看下。是什么原因导致的只加载前面的驱动。
谢谢了

使用特权

评论回复
地板
happygirlwz| | 2014-2-18 22:09 | 只看该作者
没看懂的说……

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1016

主题

9386

帖子

1

粉丝