阅读:1521回复:1
请教:如何解决“没有替设备实例指定一个功能驱动程序的错误”
我用的是DriverWorks做的USB设备驱动程序,硬件那边不是我做的,要实现中断写和批量读的功能。我参照driverworks里的实例和武安河那本新书的例子对生成的驱动程序修改后,已经编译生成了sys文件。而且参照了不少的inf文件修改了生成的inf文件,但是现在安装时出现了:
安装设备时,出现了一个错误 安装失败,因为没有替设备实例指定一个功能驱动程序的错误 我已经在论坛上搜索了有关这方面的帖子,但是也没有具体的解决方法。 我不知道该如何解决。 我是个新手,对开发工具也不熟悉,恳请各位帮帮我,多谢了! 以下是我的inf文件的内容。 ;--------- Version Section --------------------------------------------------- [Version] Signature=\"$CHICAGO$\" Provider=%MfgName% LayoutFile=layout.inf ; 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=USBDataCollectingDevice ClassGUID={36FC9E60-C465-11CF-8056-444553540000} ;--------- 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\",,, D:\\DataCollecting\\sys\\objchk\\i386 [SourceDisksFiles] DataCollecting.sys = 1,, [Philips] %USB\\VID_0471&PID_0666.DeviceDesc%=DataCollecting.DDI, USB\\VID_0471&PID_0666 ;--------- 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,,,,%USBDataCollectingDevice% HKR,,Icon,,\"-20\" ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] DataCollecting_Files_Driver = 10,System32\\Drivers DataCollecting_Files_Inf = 10,INF ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Philips [PreCopySection] HKR, NoSetupUI,,1 ;---------- DDIInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [DataCollecting_DDI] CopyFiles=DataCollecting_Files_Driver AddReg=DataCollecting_AddReg ; --------- Windows NT ----------------- [DataCollecting_Dev.NT] CopyFiles=DataCollecting_Files_Driver AddReg=DataCollecting_AddReg [DataCollecting_Dev.NT.Services] Addservice = DataCollecting, 0x00000002, DataCollecting_AddService [DataCollecting_AddService] DisplayName = %DataCollecting_SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\DataCollecting.sys LoadOrderGroup = Base [DataCollecting_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,DataCollecting.sys HKLM,\"System\\Currentcontrolset\\Services\\DataCollecting\\Parameters\",\"MaximumTransferSize\",0x10001,65536 HKLM,\"System\\Currentcontrolset\\Services\\DataCollecting\\Parameters\",\"DebugLevel\",0x10001,2 ; --------- Files (common) ------------- [DataCollecting_Files_Driver] DataCollecting.sys ;--------- Strings Section --------------------------------------------------- [Strings] MfgName=\"Philips\" Philips=\"Philips Semiconductors\" USB\\VID_0471&PID_0666.DeviceDesc=\"Philips PDIUSBD12 DataCollecting Board\" DataCollecting_SvcDesc=\"DataCollecting.Sys PDIUSBD12 Bulk&Interrupt IO Driver\" 请各位高手指导。 |
|
沙发#
发布于:2003-10-09 02:36
看DDK sample,然后自己加上去呀 !!
|
|