{"id":105570,"date":"2021-08-18T07:00:00","date_gmt":"2021-08-18T14:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=105570"},"modified":"2021-08-18T07:14:28","modified_gmt":"2021-08-18T14:14:28","slug":"20210818-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20210818-00\/?p=105570","title":{"rendered":"What&#8217;s with all of the references to &#8220;dude&#8221; in the accessibility header files?"},"content":{"rendered":"<p>If you read the <tt>winuser.h<\/tt> header file, you&#8217;ll see that the comments refer to accessible objects as &#8220;dudes&#8221;.<\/p>\n<pre>\/*\r\n * For all EVENT_OBJECT events,\r\n *      hwnd is the <span style=\"border: solid 1px black;\">dude<\/span> to Send the WM_GETOBJECT message to (unless NULL,\r\n *          see above for system things)\r\n *      ...\r\n *          The hwnd\/idObject pair gets you to the container, the <span style=\"border: solid 1px black;\">dude<\/span> you\r\n *          probably want to talk to most of the time anyway.  The idChild\r\n *          can then be passed into the acc properties to get the name\/value\r\n *          of it as needed.\r\n *      ...\r\n * Now, if the app itself resizes child windows as a result of being\r\n * sized, USER will generate LOCATIONCHANGEs for those <span style=\"border: solid 1px black;\">dudes<\/span> also because\r\n * it doesn't know better.\r\n *      ....\r\n *\/\r\n<\/pre>\n<p>What&#8217;s up with all of the &#8220;dude&#8221; references? Was <a href=\"https:\/\/twitter.com\/LauraCatPJs\"> the person who wrote these comments<\/a> a fan of <a href=\"https:\/\/en.wikipedia.org\/wiki\/The_Big_Lebowski\"> <i>The Big Lebowski<\/i><\/a>?<\/p>\n<p>There&#8217;s no connection as far as I&#8217;m aware.<\/p>\n<p>The term &#8220;dude&#8221; was a catch phrase in the Windows 95 window manager team, generally employed to mean &#8220;thing&#8221; or &#8220;entity&#8221;. It is common to see the word employed in this manner in internal comments:<\/p>\n<pre>\/\/ Returns NULL or hMenu if top level dude\r\n\r\n\/\/ If the dude that has focus is a button, then...\r\n\r\n\/\/ Realloc the dude to the right size.\r\n\r\n\/\/ Is the caller a 32-bit dude?\r\n\r\n; lParam is the thread ID of the other dude.\r\n<\/pre>\n<p>The popularity of the term spread via cross-pollination to a few other teams, most notably the shell team, so you will see occasional mentions of &#8220;dude&#8221; in other parts of Windows 95. But most of them are in the window manager.<\/p>\n<p><b>Bonus chatter<\/b>: Outside of the window manager and closely-related teams, the term <i>dude<\/i> can be found occasionally, but in those other places, it is used as a form of direct address, not as a placeholder noun:<\/p>\n<ul>\n<li>&#8220;<a href=\"https:\/\/en.wikiquote.org\/wiki\/Bill_%26_Ted's_Excellent_Adventure\">Party on, dude<\/a>!&#8221;<\/li>\n<li>&#8220;Not mine, dude!&#8221;<\/li>\n<li>&#8220;No way, dude!&#8221;<\/li>\n<\/ul>\n<p>Before doing the research, I had predicted that the Bart Simpson catch phrases &#8220;Cowabunga, dude!&#8221; and &#8220;Don&#8217;t have a cow, dude!&#8221; would also be a source of the term <i>dude<\/i>, given that <i>The Simpsons<\/i> was in its so-called golden age during the development of Windows 95. However, I couldn&#8217;t find a single example.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A catch phrase from long ago.<\/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":[2],"class_list":["post-105570","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-history"],"acf":[],"blog_post_summary":"<p>A catch phrase from long ago.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/105570","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=105570"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/105570\/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=105570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=105570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=105570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}