win32fan
驱动牛犊
驱动牛犊
  • 注册日期2008-03-30
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望39点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
阅读:1467回复:3

哪位帮忙看一个 INF 语句,多谢!

楼主#
更多 发布于:2008-08-13 19:07
在普通驱动程序安装inf 文件中:

[ClassInstall32]
Addreg=Class_AddReg
/////////////////////////////////////////////
[Class_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,"-5"

这个 HKR 具体表示什么?它后面的四个逗号又是什么意思 ?

还有下面那个 -5 听人说代表一种系统图标,不知哪位有其相关资料可否给贴上来或给个链接也行
多谢了!
znsoft
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2023-10-25
  • 粉丝300
  • 关注6
  • 积分910分
  • 威望14796点
  • 贡献值7点
  • 好评度2410点
  • 原创分5分
  • 专家分100分
  • 社区居民
  • 最爱沙发
  • 社区明星
沙发#
发布于:2008-08-14 07:47
msdn中关于inf的部分有说明
http://www.zndev.com 免费源码交换网 ----------------------------- 软件创造价值,驱动提供力量! 淡泊以明志,宁静以致远。 ---------------------------------- 勤用搜索,多查资料,先搜再问。
win32fan
驱动牛犊
驱动牛犊
  • 注册日期2008-03-30
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望39点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2008-08-14 08:07
哥啊, 您不能直接告我答案吗,  
deedbox
驱动牛犊
驱动牛犊
  • 注册日期2005-09-20
  • 最后登录2010-08-16
  • 粉丝0
  • 关注0
  • 积分14分
  • 威望89点
  • 贡献值0点
  • 好评度38点
  • 原创分0分
  • 专家分0分
地板#
发布于:2008-08-14 08:24
reg-root
Identifies the root of the registry tree for other values supplied in this entry. The value can be one of the following:
HKCR
Abbreviation for HKEY_CLASSES_ROOT
HKCU
Abbreviation for HKEY_CURRENT_USER
HKLM
Abbreviation for HKEY_LOCAL_MACHINE
HKU
Abbreviation for HKEY_USERS
HKR
Relative root – that is, keys specified using this abbreviation are relative to the registry key associated with the INF section in which this AddReg directive appears, as indicated in the following table. INF Section Containing AddReg Directive Registry Key Referenced by HKR
INF DDInstall section  The device's software key  
INF DDInstall.HW section  The device's hardware key  
INF DDInstall.Services section  The Services key


Note that HKR cannot be used in an add-registry-section referenced from an INF DefaultInstall section.

For more information about driver information stored under the HKEY_LOCAL_MACHINE root, see Driver Information in the Registry.
游客

返回顶部