inf icons line


win11_id2

Member
Local time
10:58 AM
Posts
6
OS
11
hi,
in a sample inf file in line with HKR,,icon,,-5... I am not sure what -1,-5 , etc stands for?. where is the list of such icon listings?.
 

My Computer

System One

  • OS
    11
INF files can list a DLL where device icons are provided as icon resources. The -1, -5 is the icon group's index number, and the icon's index within the group.

Drivers can provide their own DLL's, or borrow an existing icon from a default Windows DLL file. You can use ResourceHacker to explore what resources are contained within a DLL file.
 

My Computer

System One

  • OS
    Windows 7
  • Like
Reactions: OAT
if i remove my driver that used windows default icon, index=-1, update INF to use dll icon, index=100, then reinstall the driver, device manager still shows the default icon,index=-1, in old inf.
 

My Computer

System One

  • OS
    11
Is Windows selecting a generic driver for the device class, or your specific driver in Device Manager?
 

My Computer

System One

  • OS
    Windows 7
part of my inf looked like:
HKR,,Icon,,100
HKR,,CoInstaller32,,"MyDevIcon.dll,MyDevClassInstaller"
After install, the icon in device manager looked as expected.
Then, i changed the icon to
HKR,,Icon,,-1, etc. for default icon.
Uninstalled previous installation, installed new inf. with icon=-1. Noted default icon in device manager.
Then uninstalled this new one, reinstalled the old one but the icon displayed in device manager still is default one with icon id in property showing 100.
Is it related to cached icon?. i deleted the cached icon in my users\..\local still the same.
 

My Computer

System One

  • OS
    11

Latest Support Threads

Back
Top Bottom