Registry Trees for Devices and Drivers
The following trees in the registry are of particular interest to driver writers (where HKLM represents HKEY_LOCAL_MACHINE):
For information on accessing registry keys from WDF (KMDF or UMDF) drivers, see Introduction to Registry Keys for Drivers.
Note The keys under HKLM\SYSTEM\CurrentControlSet are a safe place to preserve data that is important to your driver because the data is stored in the system hive. The system takes additional precautions to protect the system hive (for example, keeping multiple copies).