zz:http://blog.csdn.net/weiwei22844/article/details/6088889
Recently in the Learning Drive programming INF file format, there are many registry-related content in directive such as AddReg, which is summarized as follows:
HKCR represents HKEY_CLASSES_ROOT;
HKCU represents HKEY_CURRENT_USER;
HKLM Representative HKEY_LOCAL_MACHINE
HKU Representative HKEY_USERS
The trouble is HKR, the abbreviation for that registry key value. The following explanations can be found by querying the Help documentation:
(1) In DDInstall section, the HKR abbreviation represents the software key (software subkey) of the device, and the specific registry key value is:
hklm/system/currentcontrolset/control/class/%classguid%/%deviceindex%
Where Classguid is the device class Guid,deviceindex is the device serial number, if the PC has more than one of the same equipment, the sequence number will be ranked 0000, 0001, 0002 ...
(2) In DDINSTALL.HW section, the HKR abbreviation represents the hardware key (Hardware subkey) of the device, and the specific registry key value is:
Hklm/system/currentcontrolset/enum/enumerator/DeviceID, where enumerator is the device category, DeviceID is the ID number of the device
(3) In Ddinstall.services section, the HKR abbreviation represents the Services key (service subkey), and the specific registry key value is:
Hklm/system/currentcontrolset/service
(4) In the Ddinstall.interfaces section, generally in the AddInterface directive to do with the registry-related operations will be used HKR, then HKR abbreviation means hklm/system/ Currentcontrolset/control/deviceclasses/%interfaceclassguid%/ branch, Where Interfaceclassguid is specified by the first parameter of addinterface directive, branch is specified by the second parameter of addinterface directive.
(5) In ClassInstall32 section, sometimes also appear hkr, then hkr abbreviation for hklm/system/currentcontrolset/control/class/%classguid%, Where Classguid is the GUID of the device class.
In addition, when writing an inf, some integers are sometimes used to represent specific paths, such as:
Ten = C:/windows (i.e. Windows directory)
one = C:/windows/system32 (that is, the Windows system directory)
C:/windows/system32/drivers (i.e. Windows driver directory)
Of course, there are some subtle differences between the different systems, but basically this is the case, the above is according to my machine to explain, my machine is installed on the Vista system.