How do you get a custom icon in the device manager tree ?
- From: "JasonA" <jason_j_aDEADBEEF@xxxxxxx>
- Date: Fri, 4 May 2007 02:27:53 -0400
Currently my device's icon is the generic blank paper with a gear on it. I have read a couple docs online that state you can install your own icon into the device manager via INF. I've tried this but no matter what the icon stays the same (this is on Vista btw)
Here's my INF below. The icon I want for my device is in the QM2000Resources.dll file. This is a Windows DLL that was build for the sole purpose of containing my icon as a resource. resource.h indicates that it's resource 102. That file gets copied to system32 correctly but the icon never changes from the default gear icon.
What am I doing wrong?
Thanks in advance,
Jason.
[Version]
Signature="$Windows NT$"
Class=QM2000
ClassGUID={65C543A3-EEBE-11D3-81A9-006008C71C1A}
Provider=%QM2000.Provider%
DriverVer = 04/29/2007,6.0.1.0
CatalogFile = QM2000.cat
[DestinationDirs]
QM2000.CopyFiles = 12 ; WINDOWS\SYSTEM32\DRIVERS
QM2000Resources.CopyFiles = 11 ; WINDOWS\SYSTEM32
[Manufacturer]
%QM2000.Manufacturer%=QM2000
[ClassInstall32]
AddReg=QM2000.AddClassReg
[QM2000]
%QM2000.DeviceDesc%=QM2000.INSTALL, PCI\VEN_10E8&DEV_8293
; TODO: Add an optional Tag File to ensure that the end user
; has specified the correct path to the diskette, CD-ROM,
; or network drive. See the INF File Reference in the
; DDK documentation for more information on SourceDisksNames
; sections.
[SourceDisksNames]
1=%QM2000.DriverDiskName%,"",1
[SourceDisksFiles]
QM2000.sys=1
QM2000Resources.dll=1
[PreCopySection]
HKR,,NoSetupUI,,1
[QM2000.INSTALL]
CopyFiles=QM2000.CopyFiles, QM2000Resources.CopyFiles
AddReg=QM2000.AddRegLoader
AddProperty=QM2000_Icons
; File sections
[QM2000.CopyFiles]
QM2000.sys
[QM2000Resources.CopyFiles]
QM2000Resources.dll
[QM2000.AddClassReg]
HKR,,,,%QM2000.ClassName%
[QM2000.AddRegLoader]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,QM2000.sys
[QM2000_Icons]
; Register icons for use in Device Manager
DeviceIcon,,,,"%winddir%\system32\QM2000Resources.dll,-102"
; Service Installation
[QM2000.INSTALL.Services]
AddService = QM2000,0x00000002,QM2000_Service_Inst
[QM2000_Service_Inst]
ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
StartType = 3 ;%SERVICE_AUTO_START%
ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\QM2000.sys
DisplayName = %QM2000.DeviceDesc%
[Strings]
QM2000.Provider="VaporWare"
QM2000.Manufacturer="Vapoware"
; TODO: Replace the following with an appropriate description
; of this actual device.
QM2000.DeviceDesc="QM2000 Device"
; TODO: Replace the following with an appropriate class name
; for this class of device.
QM2000.ClassName="QM2000 Device"
; TODO: If not installing from a diskette, change the following string
; to indicate the source location.
QM2000.DriverDiskName="QM2000 Installation Diskette"
.
- Follow-Ups:
- Re: How do you get a custom icon in the device manager tree ?
- From: Wilhelm Noeker
- Re: How do you get a custom icon in the device manager tree ?
- Prev by Date: Re: Retrieve Configuration Descriptor Fields
- Next by Date: Re: USBCAMD2
- Previous by thread: Re: Please Help needed - Print Driver
- Next by thread: Re: How do you get a custom icon in the device manager tree ?
- Index(es):
Relevant Pages
|