{"id":7663,"date":"2012-05-10T07:00:00","date_gmt":"2012-05-10T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2012\/05\/10\/cheap-amusement-searching-for-spelling-errors-in-the-registry\/"},"modified":"2012-05-10T07:00:00","modified_gmt":"2012-05-10T07:00:00","slug":"cheap-amusement-searching-for-spelling-errors-in-the-registry","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20120510-00\/?p=7663","title":{"rendered":"Cheap amusement: Searching for spelling errors in the registry"},"content":{"rendered":"<p>\nOne source of cheap amusement is searching for spelling errors\nin the registry.\nFor example, one program tried to register a new file extension,\nor at least they tried,\nexcept that they spelled <code>Extension<\/code> wrong.\n<\/p>\n<p>\nAnd they wonder why that feature never worked.\n<\/p>\n<p>\nMy discovery was that my registry contained the mysterious key\n<code>HKEY_CURRENT_USER\\S<\/code>.\nAfter some debugging, I finally found the culprit.\nThere was a program on my computer that did the equivalent of this:\n<\/p>\n<pre>\nRegCreateKeyA(HKEY_CURRENT_USER, (PCSTR)L\"Software\\\\...\", &amp;hk);\n<\/pre>\n<p>\nOne of my colleagues remarked,\n&#8220;With enough force, any peg will fit in any hole.&#8221;\n<\/p>\n<p>\nI suspect that the code was not that aggressively wrong.\nIt was probably something\n<a HREF=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2012\/03\/28\/10288227.aspx\">\nmore subtle<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One source of cheap amusement is searching for spelling errors in the registry. For example, one program tried to register a new file extension, or at least they tried, except that they spelled Extension wrong. And they wonder why that feature never worked. My discovery was that my registry contained the mysterious key HKEY_CURRENT_USER\\S. After [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-7663","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>One source of cheap amusement is searching for spelling errors in the registry. For example, one program tried to register a new file extension, or at least they tried, except that they spelled Extension wrong. And they wonder why that feature never worked. My discovery was that my registry contained the mysterious key HKEY_CURRENT_USER\\S. After [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/7663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=7663"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/7663\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=7663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=7663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=7663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}