{"id":511,"date":"2013-06-05T01:23:01","date_gmt":"2013-06-05T01:23:01","guid":{"rendered":"http:\/\/montgomeryminds.com\/blog\/?p=511"},"modified":"2013-11-22T18:56:38","modified_gmt":"2013-11-22T18:56:38","slug":"the-windows-registry","status":"publish","type":"post","link":"https:\/\/montgomeryminds.com\/blog\/the-windows-registry\/","title":{"rendered":"The Windows Registry"},"content":{"rendered":"<style type=\"text\/css\" media=\"all\"><!--\n@import url(https:\/\/montgomeryminds.com\/css\/wp_blog_fixes.css);\n--><\/style>\n<p>The Windows Registry replaces .ini files. It is a place where programs store the data they need to run. Eg, configuration settings.<\/p>\n<p>Some key facts to remember.<\/p>\n<style><!--\nstrong.less_strong { color: #ffffa0; }\n.primary { color: #80ff80; }\n.alias   { color: #ffa060; }\n--><\/style>\n<h1>Root Keys<\/h1>\n<p><span class=\"primary\"><code>[P]<\/code><\/span> &#8211; primary key<br \/>\n<span class=\"alias\"><code>[A]<\/code><\/span> &#8211; alias to some other key in the registry<\/p>\n<ol>\n<li><span class=\"alias\"><code>[A]<\/code><\/span> <code><strong>HKEY_CLASSES_ROOT<\/strong><\/code> (<code>HKCR<\/code>)\n<ul>\n<li>On Windows 2000 and above, HKCR is a compilation of user-based <code><strong class=\"less_strong\">HKCU\\Software\\Classes<\/strong><\/code> and machine-based <code><strong class=\"less_strong\">HKLM\\Software\\Classes<\/strong><\/code>. If a given value exists in both of the subkeys above, the one in <code>HKCU\\Software\\Classes<\/code> takes precedence.<\/li>\n<\/ul>\n<\/li>\n<li><span class=\"alias\"><code>[A]<\/code><\/span> <code><strong>HKEY_CURRENT_USER<\/strong><\/code> (<code>HKCU<\/code>)\n<ul>\n<li>a link to the subkey of <code><strong class=\"less_strong\">HKEY_USERS<\/strong><\/code> that corresponds to the user; the same information is accessible in both locations<\/li>\n<\/ul>\n<\/li>\n<li><span class=\"primary\"><code>[P]<\/code><\/span> <code><strong>HKEY_LOCAL_MACHINE<\/strong><\/code> (<code>HKLM<\/code>)<\/li>\n<li><span class=\"primary\"><code>[P]<\/code><\/span> <code><strong>HKEY_USERS<\/strong><\/code> (<code>HKU<\/code>)<\/li>\n<li><span class=\"alias\"><code>[A]<\/code><\/span> <code><strong>HKEY_CURRENT_CONFIG<\/strong><\/code> (<code>HKCC<\/code>)\n<ul>\n<li>It is a handle (alias) to the key <code><strong class=\"less_strong\">\"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Hardware Profiles\\Current\"<\/strong><\/code> (only exists in Windows 9x\/Me and NT-based versions of Windows)<\/li>\n<\/ul>\n<\/li>\n<li style=\"color: #404040;\"><code><strong style=\"color: #808000;\">HKEY_PERFORMANCE_DATA<\/strong><\/code> (only in NT-based versions of Windows, but invisible in the Windows Registry Editor)<\/li>\n<li style=\"color: #404040;\"><code><strong style=\"color: #808000;\">HKEY_DYN_DATA<\/strong><\/code> (only in Windows 9x\/Me, and visible in the Windows Registry Editor)<\/li>\n<\/ol>\n<h1>hive file locations<\/h1>\n<p>The Registry is stored in hive files.<\/p>\n<div style=\"border-style: solid; border-width: 1px;\">Note:<\/p>\n<ul>\n<li><code>%SystemRoot%<\/code> is usually <code>c:\\windows<\/code><\/li>\n<li><code>%UserProfile%<\/code> is usually\n<dl>\n<dt>w2k w2003 wxp<\/dt>\n<dd><code>c:\\Documents and Settings\\[USERNAME]<\/code><\/dd>\n<dt>Vista w7 w8<\/dt>\n<dd><code>c:\\users\\[USERNAME]<\/code><\/dd>\n<\/dl>\n<\/li>\n<\/ul>\n<\/div>\n<dl>\n<dt><code>HKEY_LOCAL_MACHINE\\SAM<\/code><\/dt>\n<dd><code>%SystemRoot%\\System32\\Config\\SAM<\/code><\/p>\n<ul>\n<li>(<code>SAM<\/code> stands for &#8220;Security Accounts Manager&#8221;)<\/li>\n<\/ul>\n<\/dd>\n<dt><code>HKEY_LOCAL_MACHINE\\SECURITY<\/code><\/dt>\n<dd><code>%SystemRoot%\\System32\\Config\\SECURITY<\/code><\/dd>\n<dt><code>HKEY_LOCAL_MACHINE\\SOFTWARE<\/code><\/dt>\n<dd><code>%SystemRoot%\\System32\\Config\\SOFTWARE<\/code><\/dd>\n<dt><code>HKEY_LOCAL_MACHINE\\SYSTEM<\/code><\/dt>\n<dd><code>%SystemRoot%\\System32\\Config\\SYSTEM<\/code><\/dd>\n<dt><code>HKEY_USERS\\.DEFAULT<\/code><\/dt>\n<dd><code>%SystemRoot%\\System32\\Config\\DEFAULT<\/code><\/dd>\n<dt><code>HKEY_USERS\\[User SID]<\/code> (<code>HKEY_CURRENT_USER<\/code>)<\/dt>\n<dd><code>%UserProfile%\\NTUSER.DAT<\/code><\/dd>\n<dt><code>HKEY_USERS\\[User SID]_Classes<\/code> (<code>HKEY_CURRENT_USER\\Software\\Classes<\/code>) (part of <code>HKEY_CLASSES_ROOT<\/code>)<\/dt>\n<dd>\n<dl>\n<dt>w2k w2003 wxp<\/dt>\n<dd><code>%UserProfile%\\Local Settings\\Application Data\\Microsoft\\Windows\\UsrClass.dat<\/code> (path is localized)<\/dd>\n<dt>Vista w7 w8<\/dt>\n<dd><code>%UserProfile%\\AppData\\Local\\Microsoft\\Windows\\UsrClass.dat<\/code> (path is not localized)<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<p>Reference: <a title=\"Windows Registry on WikiPedia at url: https:\/\/en.wikipedia.org\/wiki\/Windows_Registry\" href=\"https:\/\/en.wikipedia.org\/wiki\/Windows_Registry\" target=\"_blank\">https:\/\/en.wikipedia.org\/wiki\/Windows_Registry<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Windows Registry replaces .ini files. It is a place where programs store the data they need to run. Eg, configuration settings. Some key facts to remember. Root Keys [P] &#8211; primary key [A] &#8211; alias to some other key &hellip; <a href=\"https:\/\/montgomeryminds.com\/blog\/the-windows-registry\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,3],"tags":[],"_links":{"self":[{"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/posts\/511"}],"collection":[{"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":31,"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/posts\/511\/revisions\/721"}],"wp:attachment":[{"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/montgomeryminds.com\/blog\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}