Registry Keys for drivers

Source: Internet
Author: User

The following trees in the Registry are of particle interest to driver writers (whereHKLMRepresentsHKEY_LOCAL_MACHINE):

    • The HKLM \ System \ CurrentControlSet \ Services tree
    • The HKLM \ System \ CurrentControlSet \ Control tree
    • The HKLM \ SYSTEM \ CurrentControlSet \ Enum tree
    • The HKLM \ System \ CurrentControlSet \ hardwareprofiles tree

 

Drivers must Access Plug and Play (PNP) keys in the registry using system routines suchIogetdevicepropertyOrIoopendeviceregistrykey. User-mode setup components shocould use device installation functions suchSetupdigetdeviceregistrypropertyOrSetupdiopendevregkey. The Registry can be accessed from INF files using INF addreg directives.

Drivers must not access these keys directly.This discussion of registry information is solely for debugging a device installation or configuration problem.

The keys underHKLM \ System \ CurrentControlSetAre a safe place to preserve data that is vital to your driver because the data is stored in the system hive. the system takes extra precautions to protect the system hive (for example, keeping multiple copies ).

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.