注册表结构?
Keys | Abbreviation | Description | 描述 |
---|---|---|---|
HKEY_CLASSES_ROOT | HKCR | Stores file association and COM object registretion | 存储文件关联和COM对象注册 |
HKEY_CURRENT_USER | HKCU | Stores data associated with the account currently logged on | 存储与当前登录的帐户相关的数据 |
HKEY_LOCAL_MACHINE | HKLM | Stores system-related information | 存储系统相关信息 |
HKEY_USERS | HKU | Stores information about all the accounts on the machine | 存储有关机器上所有帐户的信息 |
HKEY_CURRENT_CONFIG | HKCC | Stores information about the current machine profile | 存储有关当前机器配置文件的信息 |
表中的缩写一般用来编写脚本和 INF文件。
HKEY_CLASSES_ROOT
此分支包含所有文件关联映射,以支持Windows用户界面的拖放功能,OLE信息,Windows快捷方式和COM核心方面。HKEY_CURRENT_USER
此分支链接到适合当前登录到PC的用户的HKEY_USERS部分,并包含诸如登录名,桌面设置和开始菜单设置等信息。HKEY_LOCAL_MACHINE
此分支包含有关特定PC上的硬件,软件和其他首选项的计算机特定信息,此信息用于登录到此计算机的所有用户。HKEY_USERS
此分支包含计算机每个用户的个人首选项,每个用户都由位于主分支下的SID子密钥表示。HKEY_CURRENT_CONFIG
此分支链接到适合当前硬件配置的HKEY_LOCAL_MACHINE部分。HKEY_DYN_DATA
此分支指向HKEY_LOCAL_MACHINE的一部分,用于Windows的即插即用功能,此部分是动态的,并且将随着设备添加和从系统中移除而改变。
注册表通用数据类型
Data type | Description |
---|---|
REG_BINARY | Binary data.Usually in hexadecimal notation.An example is 0xA8 |
REG_DWORD | Double word(32 bits).Can be edited in either hexadecimal or decimal |
REG_SZ | A string.Figure 1 shows examples in the right pane. |
注册表文件存储在哪里?
你可以在 WindowsSystem32Config
文件夹中找到他们中的大部分
查看 SAM、SECURITY、SOFTWARE、SYSTEM 文件,他们对应于 HKEY_LOCAL_MACHINE
文件夹下的相同键。
https://www.howtogeek.com/howto/windows-vista/how-to-clean-up-your-messy-windows-context-menu/