静下来,定好方向,好好干。
分类: WINDOWS
2008-06-10 19:47:48
假定驱动在设备管理器显示如下:
-…A(Icon)…B(ClassName)
\__A(Icon)…C(DeviceName)
+…
--------------------------------------------------
-----------------------------------------------
*.INF:
[Version]
Signature = "$Windows NT$"
Class= ;可空着,但必须有此项;
ClassGUID={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
…
[ClassInstall] ; Register a new class in Windows 98/Me
AddReg=UpDateRegistry
[ClassInstall32] ; Register a new class in Windows 2000/XP/Server 2003
AddReg=UpDateRegistry
[UpDateRegistry]
HKR,,,,”MyClass” ;B处显示类名在此修改;
HKR,,Icon,,-5 ;A处图标在此更改,在注册表中找到相应GUID,更改Icon数据,
;再刷新设备列表,图标即可更新;
[Manufacturer]
“MfgName”=DevicesList
[DevicesList]
“MyDevice”=DevMod_Inst,PCI\VEN_xxxx&DEV_xxxx ;C 处显示设备名在此修改;
…