阅读:947回复:2
为什么DS自带的PCI驱动例子装不上的??
我的软件环境:xp+sp1,Drive studio 2.7, xp DDK, .net SDK ,VC6
DS目录下的:DriverStudio\\DriverWorks\\Examples\\wdm\\pciwdm 是个简单的pci驱动,可是我添加硬件,最终说“该设备无法启动。 (代码 10)”.并且有个大大的黄色叹号。 我自己编写一个pci的驱动也安装不上,这是怎么回事? 请指教!谢谢! QQ:16884178 kornecor@163.net |
|
沙发#
发布于:2003-12-19 12:22
inf文件改了吗
1、Class=Unknown 2、CLASSGUID要改为程序里的 2、[SourceDisksNames]、[SourceDisksFiles]、[DestinationDirs]节前面的分号要去掉 还有,把inf文件放到sys文件所在目录, 还有,使用“显示已知设备。。。”安装 [编辑 - 12/19/03 by dswei] |
|
板凳#
发布于:2003-12-19 21:00
谢谢指教!但问题依然存在,请帮忙看看:我按照你的意思改了下,
但依然设备不正常,为什么呢? ;; pciwdm.inf - INF file for PCI/WDM example ;; Copyright (c) 1997-1999 Compuware Corporation, Inc. ;--------- Version Section --------------------------------------------------- [Version] Signature=\"$Windows 95$\" Provider=%ProviderName% ; If device fits one of the standard classes, use the ; name and GUID here, otherwise create your own as ; this example shows. Class=Unknown ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} ;--------- 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 = \"Install Disk\",Disk1,, [SourceDisksFiles] Pciwdm.sys = 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] Pciwdm_Files_Driver = 10,System32\\Drivers ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] ; PCI hardware IDs use the form ; PCI\\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd ; %DeviceDesc%=Pciwdm_DDI, PCI\\VEN_FFFF&DEV_FFFF&SUBSYS_00000000&REV_00 ; Your IDs here ^^^^ ^^^^ ^^^^^^^^ ^^ ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [Pciwdm_DDI] CopyFiles=Pciwdm_Files_Driver AddReg=Pciwdm_9X_AddReg [Pciwdm_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,Pciwdm.sys ; --------- Windows NT ----------------- [Pciwdm_DDI.NT] CopyFiles=Pciwdm_Files_Driver [Pciwdm_DDI.NT.Services] Addservice = Pciwdm, 0x00000002, Pciwdm_AddService [Pciwdm_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\Pciwdm.sys ; --------- Files (common) ------------- [Pciwdm_Files_Driver] Pciwdm.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName=\"Bonny\" MfgName=\"Bonny\" DeviceDesc=\"Bonny PCI/WDM Example Device\" DeviceClassName=\"Bonny Device class here\" SvcDesc=\"Bonny\" |
|