Registry locations in the Zz:inf file, such as HKCR, HKLM, HKR, etc.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.