nothinker
驱动牛犊
驱动牛犊
  • 注册日期2003-11-28
  • 最后登录2003-11-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1275回复:0

请教一个PCI板卡驱动安装的问题

楼主#
更多 发布于:2003-11-28 00:42
自己开发了一个pci板卡的驱动,写好了inf文件,在安装的最后出现了如下附件的错误(安装设备时出现了一个错误:数据无效):

请问各位大虾,这是什么原因,下面是我的inf文件的内容:
[Version]
Signature=\"$Windows NT$\"
Provider=%YControl%
ClassGUID={329B356E-1A83-4157-B29A-031AA999E96C}
Class=System
DriverVer=11/28/2003,1.0

[DestinationDirs]
DefaultDestDir   = 12

;
; Driver information
;

[Manufacturer]
%YControl%   = YControl.Mfg

[YControl.Mfg]
%YControl.DeviceDesc0% = PCI2300, PCI\\VEN_10B5&DEV_9050


;
; General installation section
;

[PCI2300]
CopyFiles=PCI2300.Files.Driver
;
; File sections
;
[PCI2300.Files.Driver]
YCPCI2300.sys,,,%COPYFLG_NOSKIP%

;
; Service Installation
;

[PCI2300.Services]
AddService = PCI2300, 0x00000002 , PCI2300_Service_Inst, PCI2300_EventLog_Inst

[PCI2300_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StYControlType      = 3                  ; SERVICE_DEMAND_STYControl
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\\YCPCI2300.sys


[PCI2300_EventLog_Inst]
AddReg = PCI2300_EventLog_AddReg

[PCI2300_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,\"%SystemRoot%\\System32\\IoLogMsg.dll;%SystemRoot%\\System32\\drivers\\YCPCI2300.sys\"
HKR,,TypesSupported,0x00010001,7

;
; Destination file information
;

[DestinationDirs]
YControl.Files.Driver.NTx86=10,System32\\Drivers

[YControl.Files.Driver.NTx86]
YCPCI2300.sys,,,%COPYFLG_NOSKIP%

;
; Source file information
;

[SourceDisksNames.x86]
1 = %DiskId1%,,,\"\"

[SourceDisksFiles]
; Files for disk YControl Installation Disk #1 (System)
YCPCI2300.sys = 1,,


[Strings]

;
; Non-Localizable Strings
;

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = \"System\\CurrentControlSet\\Services\"

;
; Localizable Strings
;

YControl.DeviceDesc0 = \"YControl PCI2300 16Bit 200KHz 16CH AD & 16Bit 100KHz 1CH DA & 16CH DI/DO Card\"
DiskId1 = \"YControl Installation Disk #1 (System)\"
YControl = \"YControl\"

[编辑 -  11/28/03 by  nothinker]
游客

返回顶部