阅读:2201回复:10
如何在设备管理器中去掉问号?
我做了一个PCI设备卡的驱动,安装调试后设备使用正常;唯一不爽的是在设备管理器中显示我的设备前面有一个“?”,这在WIN2000中是指设备有问题,可是我的设备和驱动都没有问题能用的。
我估计是在*.inf文件中将设备归类的问题,谢谢哪位大虾告知怎么去掉问号。 |
|
|
沙发#
发布于:2004-08-16 15:09
在INF中设置图表的索引。
|
|
|
板凳#
发布于:2004-08-16 17:46
是在哪个字段改写呢?
我把[version]中的CLASS改写为了:Class=System 可是安装后还是如故。 谢谢请指教 |
|
|
地板#
发布于:2004-08-16 19:50
把你的INF文件贴出来看看。
|
|
|
地下室#
发布于:2004-08-17 08:55
我的*.inf
;; ES14011A.inf ;; ********* PLEASE READ *********** ;; The wizard cannot create exact INF files for all buses and device types. ;; You may have to make changes to this file in order to get your device to ;; install. In particular, hardware IDs and logical configurations require ;; intervention. ;; ;; The Win2K DDK documentation contains an excellent INF reference. ;--------- Version Section --------------------------------------------------- [Version] Signature="$CHICAGO$" Provider=%ProviderName% ; 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=System ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} DriverVer=07/14/2004,1.00.0000.1 LayoutFile=layout.inf ;--------- 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] ;ES14011A.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] ES14011A_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%=ES14011A_DDI, PCI\VEN_11e3&DEV_0014&SUBSYS_000511e3&REV_01 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [ES14011A_DDI] CopyFiles=ES14011A_Files_Driver AddReg=ES14011A_9X_AddReg [ES14011A_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,ES14011A.sys HKR, "Parameters", "BreakOnEntry", 0x00010001, 0 ; --------- Windows NT ----------------- [ES14011A_DDI.NT] CopyFiles=ES14011A_Files_Driver AddReg=ES14011A_NT_AddReg [ES14011A_DDI.NT.Services] Addservice = ES14011A, 0x00000002, ES14011A_AddService [ES14011A_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\ES14011A.sys [ES14011A_NT_AddReg] HKLM, "System\CurrentControlSet\Services\ES14011A\Parameters",\ "BreakOnEntry", 0x00010001, 0 ; --------- Files (common) ------------- [ES14011A_Files_Driver] ES14011A.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName="AUTO_CAT" MfgName="AUTO_CAT" DeviceDesc="PCI_GPIB" DeviceClassName="PCI_GPIB" SvcDesc="Driver for PCI_GPIB" |
|
|
5楼#
发布于:2004-08-17 09:35
HKR,,Icon,,"-18"
chang someone else.... |
|
|
6楼#
发布于:2004-08-17 11:08
HKR,,Icon,,"-18"
改成多少啊? |
|
|
7楼#
发布于:2004-08-17 11:41
谢谢wowocock,经过我的多次试验,将“-18”改成“-12”就好了。
“-12”是一个灰色的方块符号,对应没有归类的设备。 另外比较有用的“-20”是USB类的符号 |
|
|
8楼#
发布于:2004-08-17 11:59
If the Icon value is positive, it represents a resource identifier for a resource. The resource will be extracted from the class installer DLL, if the Installer32 key is specified, or from the property page DLL, if the EnumPropPages32 key is specified. The value "0" represents the first icon in the DLL. The value "1" is reserved.
If the Icon value is negative, the absolute value represents a predefined icon. See SetupDiDrawMiniIcon for a list of the predefined icons. For example, "-18" specifies the "Unknown" icon (18). Computer 0 Display 2 Mouse 5 Keyboard 6 FDC 9 HDC 9 Ports 10 Net 15 System 0 Sound 8 Printer 14 Monitor 2 Network Transport 3 Network Client 16 Network Service 17 |
|
9楼#
发布于:2004-08-17 15:56
好东西,不早点贴出来,害的我们大家只有碰死老鼠拉。。。。。。
|
|
|
10楼#
发布于:2004-08-18 08:29
感谢arthurtu
实在是有用, 但是不好意思这片贴子没有分了,在此谢谢! |
|
|