2 qq 16127127 qq_16127127 于 2015.06.02 20:34 提问

求大神指导PCI驱动程序开发中,由于inf文件的问题提示“无法找到需要的软件因此无法安装”

我这里是用的VS2005 driverstudio3.2 和DDk的框架对pci的驱动程序进行开发的
设备ID是对的 但是就是安装不了,找了好久问题但是不知道出在哪里
求大神指导!!!!
inf文件如下:

; File Name: PCI9054.inf
; Install information file for PCI9054 Driver
;
; Generated by C DriverWizard 3.2.0 (Build 2485)
; Requires DDK Only
; File created on 5/26/2015
;

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

[Version]
Signature="$WINDOWS NT$"
Class=PCI9054
ClassGUID={5229F303-FDBB-43E5-8F0E-D71F2E76BD99}
Provider=%Provider%
DriverVer=5/26/2015,1.00.0000
CatalogFile=PCI9054.cat

[ControlFlags]
; Pnp drivers should not be installable via non-PnP hardware dialogs
ExcludeFromSelect = *

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

; Not necessary if using a standard class

; 9X Style
[ClassInstall]
Addreg=PCI9054ClassAddReg

; NT Style
[ClassInstall32]
Addreg=PCI9054ClassAddReg

[PCI9054ClassAddReg]
;reg-root,[subkey],[value-entry-name],[flags],[value]
HKR,,,%REG_SZ%,%DeviceClassName%
HKR,,Icon,,"-18"
HKR,,DeviceCharacteristics,%REG_DWORD%,0x100 ; FILE_DEVICE_SECURE_OPEN
HKR,,Security,,"D:P(A;;GR;;;WD)(A;;GA;;;SY)(A;;GA;;;BA)" ; generic read - everybody
; generic all access - system and admin

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

[DestinationDirs]
DefaultDestDir = 10
PCI9054_Files_Driver = 12
CoInstaller_CopyFiles = 11 ; windows\system32

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
; These sections identify source disks and files for installation.

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
PCI9054.sys = 1,,
PCI9054CoInst.dll=1

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

[Manufacturer]
%MfgName% = PCI9054_Mfg

[PCI9054_Mfg]
; DisplayName Section DeviceId
%PCI9054_DeviceDesc%=PCI9054_DDI, PCI\VEN_FFFF&DEV_FFFF&SUBSYS_00000000&REV_00

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 98 -----------------

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

[PCI9054_DDI]
CopyFiles=PCI9054_Files_Driver
AddReg=PCI9054_9X_AddReg

[PCI9054_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,PCI9054.sys
HKR,,Description,,%PCI9054_DeviceDesc%

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

[PCI9054_DDI.NT]
CopyFiles=PCI9054_Files_Driver

[PCI9054_DDI.NT.Services]
Addservice = PCI9054, %FLG_ADDREG_NOCLOBBER%, PCI9054_Service

; --------- Coinstaller installation -----------------

[PCI9054_DDI.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
PCI9054CoInst.dll

[CoInstaller_AddReg]
; We are using our own custom device coinstaller DLL
HKR,,CoInstallers32,%REG_MULTI_SZ%,"PCI9054CoInst.dll,PCI9054CoInstaller"

; --------- Service ----------------------

[PCI9054_Service]
DisplayName = %PCI9054_SvcDesc%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\PCI9054.sys
LoadOrderGroup = Extended Base

; --------- Files ----------------------

[PCI9054_Files_Driver]
PCI9054.sys,,,2

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

[Strings]
Provider = "sddyy"
MfgName = "sddyy"
PCI9054_DeviceDesc = "PCI9054 Device"
DeviceClassName="Class for PCI9054 devices"
PCI9054_SvcDesc = "Driver for PCI9054 Device"
DiskId1 = "PCI9054 Device Installation Disk #1"

REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_NONE = 0x00020001

SERVICE_KERNEL_DRIVER = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER = 0x00000002
SERVICE_ADAPTER = 0x00000004
SERVICE_RECOGNIZER_DRIVER = 0x00000008

SERVICE_BOOT_START = 0x0
SERVICE_SYSTEM_START = 0x1
SERVICE_AUTO_START = 0x2
SERVICE_DEMAND_START = 0x3
SERVICE_DISABLED = 0x4

SERVICE_ERROR_IGNORE = 0x00000000
SERVICE_ERROR_NORMAL = 0x00000001
SERVICE_ERROR_SEVERE = 0x00000002
SERVICE_ERROR_CRITICAL = 0x00000003

FLG_ADDREG_NOCLOBBER = 0x00000002
FLG_ADDREG_DELVAL = 0x00000004
FLG_ADDREG_APPEND = 0x00000008
FLG_ADDREG_KEYONLY = 0x00000010
FLG_ADDREG_OVERWRITEONLY = 0x00000020
FLG_ADDREG_64BITKEY = 0x00001000
FLG_ADDREG_KEYONLY_COMMON = 0x00002000
FLG_ADDREG_32BITKEY = 0x00004000

1个回答

devmiao
devmiao   Ds   Rxr 2015.06.02 20:40
Csdn user default icon
上传中...
上传图片
插入图片