- Customize icon in device manager
- Posted by mayur on November 5th, 2007
Hi,
I need to change the icon for my driver which falls under a new class.
By changing index in the following line in the .inf file, doesn't
work:
HKR,,Icon,,-2
Following is the part of my inf file:
[Version]
Signature="$WINDOWS NT$"
Class=MyNewClass
ClassGuid={E56607FA-7D30-40CA-8E64-6CBB021386E6}
Provider="My Company"
DriverVer=07/25/2006,2.1.4.1
[DestinationDirs]
DefaultDestDir = 12
; ================= Class section =====================
[ClassInstall32]
Addreg=MyClassReg
[MyClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-2
[SourceDisksNames]
1 = %DiskId1%,,,""
[SourceDisksFiles]
MyDevice.sys = 1,,
Please let me know what is the way to change the icon displayed in the
device manager for Windows XP as well for Windows Vista.
Thanks,
Mayur
- Posted by Don Burn on November 5th, 2007
Where are you getting the ICON from? Changing the index means you have to
have an ICON you want, for instance the negative numbers are limited (see
the documentation for SetupDiDrawMiniIcon) or else you a property page DLL
and have the ICON in there.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"mayur" <mayuradatia@gmail.com> wrote in message
news:1194271419.105807.72380@v23g2000prn.googlegro ups.com...
- Posted by mayur on November 5th, 2007
I am getting the icon from the default file it takes (setupapi.dll
probably). I am also changing the index to a valid index mentioned in
SetupDiDrawMiniIcon documentation. However, the change in icon doesn't
reflect inspite of uninstalling & installing a number of times. After
uninstalling, I even restarted the machine & then installed afresh,
but failed to get changed icon.
- How do you get a custom icon in the device manager tree ? (Drivers) by JasonA
- Device Manager Icon (Drivers) by J1M
- Custom ICON display in device manager (Drivers) by bharati
- Device Manager icon --> custom icon? (Drivers) by Tadd
- troubleshoot icon in the Device Manager tree (Drivers) by Sabin

