INF对注册表的操作
- 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 HKRINF DDInstall section
The device's software keyINF DDInstall.HW section
The device's hardware keyINF DDInstall.Services section
The Services keyNote that HKR cannot be used in an add-registry-section referenced from an INF DefaultInstall section.