{"id":24333,"date":"2007-11-30T10:00:00","date_gmt":"2007-11-30T10:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2007\/11\/30\/hotkeys-involving-the-windows-logo-key-are-reserved-by-the-system\/"},"modified":"2007-11-30T10:00:00","modified_gmt":"2007-11-30T10:00:00","slug":"hotkeys-involving-the-windows-logo-key-are-reserved-by-the-system","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20071130-00\/?p=24333","title":{"rendered":"Hotkeys involving the Windows logo key are reserved by the system"},"content":{"rendered":"<p>Hotkeys involving the Windows logo key are reserved by the system. New ones are added over time. For example, Windows&nbsp;98 added <!--[if IE]&gt; <font FACE=\"Wingdings\">&#xFF;<\/font>+D &lt;![endif]-->  Win+D  to <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2004\/05\/27\/143042.aspx\"> show the desktop<\/a>. Windows&nbsp;2000 added <!--[if IE]&gt; <font FACE=\"Wingdings\">&#xFF;<\/font>+U &lt;![endif]-->  Win+U  to call up the Utility Manager. Windows&nbsp;XP added <!--[if IE]&gt; <font FACE=\"Wingdings\">&#xFF;<\/font>+B &lt;![endif]-->  Win+B  to move keyboard focus to the taskbar notification area. And a whole bunch of new hotkeys were added in Windows&nbsp;Vista, such as <!--[if IE]&gt; Ctrl+<font FACE=\"Wingdings\">&#xFF;<\/font> &lt;![endif]-->  Ctrl+Win  which is used by speech recognition. (It&#8217;s also a bit of a pun: &#8220;Control Windows&#8221;, get it?)\n The fact that these hotkeys are reserved is hard to find. It&#8217;s buried in a bullet point a third of the way down the <a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/dnacc\/html\/ATG_KeyboardShortcuts.asp\"> Guidelines for Keyboard User Interface Design<\/a> document. It&#8217;s also highlighted in the <a href=\"http:\/\/download.microsoft.com\/download\/1\/6\/1\/161ba512-40e2-4cc9-843a-923143f3456c\/scancode.doc\"> WHQL keyboard requirements<\/a> right in the section title: &#8220;Windows Logo Key Support (Reserved for Operating System Use)&#8221;. But even if you didn&#8217;t find the documentation (and I don&#8217;t blame you), the history of Windows clearly indicates that new Windows logo hotkeys arrive on a pretty regular basis. If your program uses one of those hotkeys, there&#8217;s a good chance it&#8217;ll conflict with a future version of Windows.\n Why isn&#8217;t this mentioned in the <code>RegisterHotKey<\/code> documentation? Perhaps it should. But historically, function documentation merely told what a function does, not how it should be used. How a function should be used is a value judgement, and it was traditionally not the role of function documentation to make value judgements or specify policy. If you go to a programming language&#8217;s specification document, you&#8217;ll find a discussion of what the language keywords do, but no guidance as to how you should use them. Like a language specification, function documentation historically limited itself to how something is done, not whether it ought to be done. Recommendations traditionally belong in overviews, white papers, and other guidance documents. After all, the <code>CreateFile<\/code> documentation doesn&#8217;t say &#8220;Do not create application data in the My Documents folder.&#8221; The <code>CreateFile<\/code> function doesn&#8217;t care; its job is to create files. Whether a file is created in the correct location is a guideline or policy decision at a higher level.<\/p>\n<p> Note: I don&#8217;t know whether that is still the position of the function documentation team, that it limit itself to the facts and avoid value judgements and guidance. My goal today is to draw attention to the guidance. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hotkeys involving the Windows logo key are reserved by the system. New ones are added over time. For example, Windows&nbsp;98 added Win+D to show the desktop. Windows&nbsp;2000 added Win+U to call up the Utility Manager. Windows&nbsp;XP added Win+B to move keyboard focus to the taskbar notification area. And a whole bunch of new hotkeys were [&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":[25],"class_list":["post-24333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Hotkeys involving the Windows logo key are reserved by the system. New ones are added over time. For example, Windows&nbsp;98 added Win+D to show the desktop. Windows&nbsp;2000 added Win+U to call up the Utility Manager. Windows&nbsp;XP added Win+B to move keyboard focus to the taskbar notification area. And a whole bunch of new hotkeys were [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/24333","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=24333"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/24333\/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=24333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=24333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=24333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}