阅读:1543回复:4
求安装驱动文件不能出现小图标问题?
我编写了一个芯片1581的驱动程序,安装后能运行,但是在设备管理器中没有归入“通用串行总线控制器”,而是归入新的项“Description of Device here”的下面:Description of ISP1581_DRIVER NT service here。我是按照武安河书中例子改写inf的。
这样做结果正常,但是电脑界面右下角没有出现那个硬件小图标。请问如何解决这两个问题?即归入“通用串行总线控制器”,出现硬件小图标。多谢解答。 下面是我的inf文件: [Version] Signature="$Windows 95$" ; 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=WAHBOOK ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} Provider=%ProviderName% ;--------- 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] ;ISP1581_DRIVER.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] ISP1581_DRIVER_Files_Driver = 10,System32\Drivers ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] %DeviceDesc%=ISP1581_DRIVER_DDI, USB\VID_04CC&PID_1B49 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [ISP1581_DRIVER_DDI] CopyFiles=ISP1581_DRIVER_Files_Driver AddReg=ISP1581_DRIVER_9X_AddReg [ISP1581_DRIVER_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,ISP1581_DRIVER.sys HKR, "Parameters", "BreakOnEntry", 0x00010001, 0 ; --------- Windows NT ----------------- [ISP1581_DRIVER_DDI.NT] CopyFiles=ISP1581_DRIVER_Files_Driver AddReg=ISP1581_DRIVER_NT_AddReg [ISP1581_DRIVER_DDI.NT.Services] Addservice = ISP1581_DRIVER, 0x00000002, ISP1581_DRIVER_AddService [ISP1581_DRIVER_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\ISP1581_DRIVER.sys [ISP1581_DRIVER_NT_AddReg] HKLM, "System\CurrentControlSet\Services\ISP1581_DRIVER\Parameters",\ "BreakOnEntry", 0x00010001, 0 ; --------- Files (common) ------------- [ISP1581_DRIVER_Files_Driver] ISP1581_DRIVER.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName="dary" MfgName="Name of HW Manufacturer here" DeviceDesc="Description of Device here" DeviceClassName="WDM范例" SvcDesc="Description of ISP1581_DRIVER NT service here" |
|
沙发#
发布于:2004-07-15 08:33
没有人会吗?哪位帮我看看吧,谢了
|
|
板凳#
发布于:2004-07-15 14:22
自己的驱动程序归入新项的做法应该是更好的做法,你没必要把它归入到“通用串行总线控制器”中去.“通用串行总线控制器”下列的应该只是USB总线控制器的驱动程序.
如果你喜欢把自己的驱动程序归入到“通用串行总线控制器”,那么把Class=WAHBOOK改成Class=USB,把ClassGUID行删除即可. |
|
地板#
发布于:2004-07-21 14:44
你在inf文件里设置Class=usb即可
|
|
|
地下室#
发布于:2004-07-28 18:26
请问楼主,你的驱动程序是用DS开发的吗?
|
|