阅读:1397回复:2
关于2K下设备管理器中,硬件类的图标
做了个PCI数传卡,为一个大设备做配套的,硬件,驱动都正常,但是有一个小小的问题,就是在2K下的设备管理器中,把我的设备用个大问号来标识,怎么看都不顺眼。其实在INF文件中,我定义的设备类是视频设备,这应当是有相关的图标的,怎么还会是个问号??
|
|
|
沙发#
发布于:2002-11-04 09:26
你得对INF文件进行一些修改:
1、修改[Version]节的Class的值,如Class=MyPCICard 2、在修改(注册)注册表一节中的HKR,,Icon,,-5中确保最后一个值是负的。这样你的图标就不会是大问号了。 给你一个例子吧。先是用Windriver生成的,我根据我的需要做了些改动。 ; Generated by DriverWizard v5.20 - http://www.jungo.com. ; Installation file (.inf) for \"Didcard\" device ; Copyright (c) 2002 Netsafe ; [Version] Signature=\"$CHICAGO$\" ; Represents all Windows OSs Class=加密卡 ;replace 加密卡 as you like ClassGuid={c671678c-82c1-43f3-d700-0049433e9a4b} Provider=%jun% DriverVer=09/04/2002, 1.0.0 ; Driver information ; ------------------ [Manufacturer] %Mfg%=DeviceList [DeviceList] ; The Vendor ID is 9998, and the Device ID is 541f \"动态密码认证系统加密卡\"=Install, PCI\\VEN_9998&DEV_541F ;^^^^ ^^^^;replace them with your VID & DID ; Installation section ; -------------------- [Install] ; Installation script for Windows 98/Me CopyFiles=FilesToCopy AddReg=UpDateRegistry Log_Config=Base1 [Base1] IRQConfig=3,4,5,7,9,10,11,14,15 [Install.NT] ; Installation script for Windows 2000/XP CopyFiles=FilesToCopy AddReg=UpDateRegistry [FilesToCopy] wdmpci.sys ,,,0x40 ; 0x40 == COPYFLG_OVERWRITE_OLDER_ONLY ;^^^^^^^^^^replace it with your driver\'s name [ClassInstall] ; Register a new class in Windows 98/Me AddReg=UpDateRegistry [ClassInstall32] ; Register a new class in Windows 2k/XP AddReg=UpDateRegistry [UpDateRegistry] HKR,,,,Dragon ;replace \"Dragon\" with your company\'s name HKR,,Icon,,-5 HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,, wdmpci.sys ;^^^^^^^^^^replace it with your driver name [ControlFlags] ExcludeFromSelect = * ; Remove all devices listed in this INF file ; from the display shown to the end user (a PNP device shouldn\'t ; be manually loaded). [PreCopySection] HKR,,NoSetupUI,,1 ; Defining WinDriver Service ; --------------------------- [Install.NT.Services] Addservice=wdmpci, 0x00000002, Service_Info ;^^^^^^replace it with your driver name without .sys [Service_Info] DisplayName = %Service_Description% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\wdmpci.sys ;^^^^^^^^^^replace it with your driver name ; Source file information ; ----------------------- [SourceDisksFiles] wdmpci.sys=1 ; Indicates that the wdmpci.sys file is located on disk 1# of \"加密卡驱动安装盘\" ;^^^^^^^^^^replace it with your driver\'s name [SourceDisksNames] 1=\"加密卡驱动安装盘\",, ; This indicates that disk number 1 has the label \"加密卡驱动安装盘\". ; The installer will search for wdmpci.sys in this disk. [DestinationDirs] DefaultDestDir=10, System32\\Drivers ; The location to which the wdmpci.sys ; file will be copied (10 translates to the correct Windows directory ; on the target machine). [Strings] jun=\"DragonTech\" Service_Description=\"WDMpci Kernel Module\" Mfg=\"DragonTech\" |
|
|
板凳#
发布于:2002-11-04 13:13
谢谢您的回答,我这就尝试调整一下看看!
|
|
|