xx_focus
驱动中牛
驱动中牛
  • 注册日期2003-08-06
  • 最后登录2007-06-08
  • 粉丝0
  • 关注0
  • 积分96分
  • 威望10点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
阅读:1025回复:0

这里不问这个问题了,已经转移到专版,请本版版主删除此帖

楼主#
更多 发布于:2004-10-21 11:40
我在 Win2K + sp4 系统中安装了 DS2.7、VC++ 6.0、Win2K DDK
使用  DS 生成一个 USB 驱动框架,所有编译到目前为止都很成功,
但是安装时系统提示没有找到文件!修改了几次但还是不知哪漏了。

下面是这个 INF 文件

;; Ftm230.inf

;; *********  PLEASE READ ***********
;; The wizard cannot create exact INF files for all buses and device types.
;; You may have to make changes to this file in order to get your device to
;; install. In particular, hardware IDs and logical configurations require
;; intervention.
;;
;; The Windows DDK documentation contains an excellent INF reference.

;--------- Version Section ---------------------------------------------------

[Version]
Signature="$CHICAGO$"
Provider=%ProviderName%

; If device fits one of the standard classes, use the name and GUID here,
; otherwise create your own device class and GUID as this example shows.

Class=HIDClass
ClassGUID={745a17a0-74d3-11d0-b6fe-00a0c90f57da}

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------

; These sections identify source disks and files for installation.  They are
; shown here as an example, but commented out.

[SourceDisksNames]
1 = "Phoke Install Disk",,0

[SourceDisksFiles]
Ftm230.sys = 1
Ftm230.inf = 1;这里是我添加的

;--------- ClassInstall/ClassInstall32 Section -------------------------------

; Not necessary if using a standard class

; 9X Style
[ClassInstall]
Addreg=Class_AddReg

; NT Style
[ClassInstall32]
Addreg=Class_AddReg

[Class_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,"-18"

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
Ftm230_Files_Driver = 10,System32Drivers
Ftm230_INF = 10,INF;这里是我添加的

;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]
;这里的原文是 %DeviceDesc%=Ftm230_DDI, USBVID_FFFF&PID_0001
%DeviceDesc%=Ftm230_DDI.NT, USBVID_FFFF&PID_0001

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 9X -----------------

; Experimentation has shown that DDInstall root names greater than 19 characters
; cause problems in Windows 98

[Ftm230_DDI]
CopyFiles=Ftm230_Files_Driver
AddReg=Ftm230_9X_AddReg

[Ftm230_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Ftm230.sys
HKR, "Parameters", "BreakOnEntry", 0x00010001, 0

; --------- Windows NT -----------------

[Ftm230_DDI.NT]
CopyFiles=Ftm230_Files_Driver
AddReg=Ftm230_NT_AddReg

[Ftm230_DDI.NT.Services]
Addservice = Ftm230, 0x00000002, Ftm230_AddService

[Ftm230_AddService]
DisplayName    = %SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%System32DriversFtm230.sys

[Ftm230_NT_AddReg]
HKLM, "SystemCurrentControlSetServicesFtm230Parameters",
"BreakOnEntry", 0x00010001, 0


; --------- Files (common) -------------

[Ftm230_Files_Driver]
Ftm230.sys

;这个是我添加的
[Ftm230_INF]
Ftm230.inf

;--------- Strings Section ---------------------------------------------------

[Strings]
ProviderName="Phoke"
MfgName="Ftm230"
DeviceDesc="Ftm230"
DeviceClassName="HIDClass"
SvcDesc="Ftm230R12"


[编辑 -  10/21/04 by  xx_focus]

[编辑 -  10/21/04 by  xx_focus]
游客

返回顶部