The Old New Thing

What do the colors in the elevation dialog mean?

On Windows Vista with User Account Control enabled, when you right-click a program and select Run as Administrator, the elevation prompt contains a particular snippet of warning text and a corresponding color-coding. Here are what the four colors mean. You can learn about the philosophy behind UAC in this Channel9 interview. Pre-emptive ...

How to talk like Marketing: The awareness space

The great thing about Marketing is that you get to use words and phrases that normal human beings never use. Here's an example from over a decade ago: XYZ fit the installed base of web browsers we were targeting, and worked well in an awareness space. I have no idea what an "awareness space" is. The punch line? This sentence came from a ...

Why are there both TBSTYLE_EX_VERTICAL and CCS_VERT?

There are two ways to make a vertical toolbar. You can use the common style, or you can use the extended style which is specific to the toolbar. Why are there two ways of doing the same thing? Because we messed up. Whoever created the extended style didn't realize that there was already a perfectly good way of specifying a vertical ...

Passing by address versus passing by reference, a puzzle

Commenter Mike Petry asked via the Suggestion Box: Why can you dereference a COM interface pointer and pass it to a function with a Com interface reference. The call. The function called. I found some code written like this during a code review. It is wrong but it seems to work. You already know the answer to this question. You...