August 18th, 2021

What’s with all of the references to “dude” in the accessibility header files?

If you read the winuser.h header file, you’ll see that the comments refer to accessible objects as “dudes”.

/*
 * For all EVENT_OBJECT events,
 *      hwnd is the dude to Send the WM_GETOBJECT message to (unless NULL,
 *          see above for system things)
 *      ...
 *          The hwnd/idObject pair gets you to the container, the dude you
 *          probably want to talk to most of the time anyway.  The idChild
 *          can then be passed into the acc properties to get the name/value
 *          of it as needed.
 *      ...
 * Now, if the app itself resizes child windows as a result of being
 * sized, USER will generate LOCATIONCHANGEs for those dudes also because
 * it doesn't know better.
 *      ....
 */

What’s up with all of the “dude” references? Was the person who wrote these comments a fan of The Big Lebowski?

There’s no connection as far as I’m aware.

The term “dude” was a catch phrase in the Windows 95 window manager team, generally employed to mean “thing” or “entity”. It is common to see the word employed in this manner in internal comments:

// Returns NULL or hMenu if top level dude

// If the dude that has focus is a button, then...

// Realloc the dude to the right size.

// Is the caller a 32-bit dude?

; lParam is the thread ID of the other dude.

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 “dude” in other parts of Windows 95. But most of them are in the window manager.

Bonus chatter: Outside of the window manager and closely-related teams, the term dude can be found occasionally, but in those other places, it is used as a form of direct address, not as a placeholder noun:

Before doing the research, I had predicted that the Bart Simpson catch phrases “Cowabunga, dude!” and “Don’t have a cow, dude!” would also be a source of the term dude, given that The Simpsons was in its so-called golden age during the development of Windows 95. However, I couldn’t find a single example.

Topics
History

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

4 comments

Discussion is closed. Login to edit/delete existing comments.

  • AK Wong

    It’s ironic that Raymond of all people could misquote Bart Simpson given that he was responsible for originating and compiling episode capsules on alt.tv.simpsons for many years. I suppose it has been almost 30 years…

  • Matthew van Eerde

    “Cowabunga, dude” is Teenage Mutant Ninja Turtles, not The Simpsons. Bart never said it.

  • Andy Cadley

    I thought Bart Simpson was more “Don’t have a cow, man!”

    Dude, for some reason, I associated more with Bill and Ted – “Party on ,dudes!”