The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Feb 15, 2010
Post comments count 0
Post likes count 1

Advocating the overthrow of the government of the United States by force or subversion

Raymond Chen

It has been widely reported that South Carolina now requires "subversive groups" to register with the Secretary of State (and pay a $5 filing fee). Curiously, the list of organizations which must register include "an organization subject to foreign control." I wonder if this means that all consulates have to register, and that when any foreign dignitary visits South Carolina, they have to pay a $5 filing fee. (Not to mention all foreign-owned companies like Shell Oil.) Actually, it has been pointed out that a "subversive organization" includes one which advocates, teaches, or practices the propriety of contro...

Feb 15, 2010
Post comments count 0
Post likes count 1

Private classes, superclassing, and global subclassing

Raymond Chen

In the suggestion box, A. Skrobov asks why it's impossible to superclass , but the example that follows is not actually superclassing. When I register my own class under this atom, and leave NULL in WNDCLASS.hInstance, Windows fills it in for me. Then I have two distinct classes registered: (0,WC_DIALOG) and (hMyInstance,WC_DIALOG), and DialogBox functions all use the first one. This question is a bit confused, since it says that the goal is to superclass the dialog class, but registering is not superclassing. First, I'll refer everyone to this MSDN article which describes the various ways of manipulati...

Feb 12, 2010
Post comments count 0
Post likes count 0

A decidedly Canadian response to the shambles that was the running portion of the modern pentathlon in Beijing

Raymond Chen

Living so close to the United States-Canada border means that there's a lot of friendly teasing of the many Canadians in our midst. It's a good thing Canadians as a whole seem to have a pretty good sense of humor about it. (Well, except the Quebecers. Those humorless grumps.) The final stage of the modern pentathlon is supposed to be a cross-country course, run through grassy fields, with occasional obstacles like a brook that needs to be hurdled. At the 2008 Olympics in Beijing, however, the course didn't so much resemble a cross-country run as it did waiting in line at Disneyland. Instead of traversing an outd...

Feb 12, 2010
Post comments count 0
Post likes count 1

How do I get information about the target of a symbolic link?

Raymond Chen

Functions like and , when asked to provide information about a symbolic link, returns information about the link itself and not the link destination. If you use the function, you can tell that you have a symbolic link because the file attributes will have the flag set, and the member will contain the special value . Okay, great, so now I know I have a symbolic link, but what if I want information about the link target? For example, I want to know the size of the link target, its last-modified time, and its name. To do this, you open the symbolic link. The I/O manager dereferences the symbolic link and gives...

Feb 11, 2010
Post comments count 0
Post likes count 1

A sense of the term anonymous with which I had previously been unfamiliar

Raymond Chen

I was filling out one of those online satisfaction surveys, and in the introduction, it reassured me that This survey is anonymous. The first question on the survey: Enter the support request (SR) number below. Yeah, because they'll never be able to trace the support request number back to me. (I suspect that the reason for this contradiction is that the organization that wanted to conduct the survey used a site that supports either anonymous surveys or tracked surveys, and they opted for the anonymous survey for whatever reason—maybe it's cheaper?—but they actually wanted a tracked survey, so...

Feb 10, 2010
Post comments count 0
Post likes count 1

Those annoying satisfaction surveys

Raymond Chen

It seems that the United States has gone satisfaction survey mad. You get your oil changed, they ask you to fill out a satisfaction survey. You make a doctor's appointment, they ask you to fill out a satisfaction survey. You call the company technical support phone line, they ask you to fill out a satisfaction survey. These surveys typically ask you to rate how well various aspects of the interaction went, be it how easy it was to make the appointment, how knowledgeable the person who helped you was, how long you had to wait, whether the music in the waiting room was soothing, and what really bothers me is that ...

Feb 9, 2010
Post comments count 0
Post likes count 1

No matter what you do, someone will call you an idiot, part 2

Raymond Chen

There was quite a bit of reaction to what I thought was a simple "Hey, here's what's going on" article from last year, specifically on how the Adaptive Display Timeout means that Windows doesn't always start the screen saver exactly on time. As you may recall, this feature adjusts the time it takes for the screen saver to activate if the user keeps dismissing it immediately after it starts. One of those small things that makes the computer adapt to you rather than vice versa, and an adaptation that you probably don't even notice when it happens. I think these two responses below summarize the extremes of the ty...

Feb 9, 2010
Post comments count 0
Post likes count 1

Moving by staying put

Raymond Chen

A few years ago, Michael Kaplan opined on his distaste for office moves, particular the ones for which there appears to be very little benefit. One of his options was "interview with whatever group moves into Building 24 and work for them instead." Many years ago, an organizational change to the project I was working on resulted in my group ceasing to exist. The reason isn't important to the story; what's important is that the members of that group were redeployed to other parts of the project. At the time, I hadn't yet learned that material goods are a burden, and I dreaded moving offices because of all the ...

Feb 8, 2010
Post comments count 0
Post likes count 0

The 2010/2011 Seattle Symphony subscription season at a glance

Raymond Chen

Every year, I put together a little pocket guide to the Seattle Symphony subscription season for my symphony friends to help them decide which ticket package they want. As before, you might find it helpful, you might not, but either way, you're going to have to suffer through it. Here's the at-a-glance season guide for Gerard Schwarz's final season as the orchestra's music director. For those not familiar with the Seattle Symphony ticket package line-ups: Most of the ticket packages are named Masterworks nX where the number is the number of concerts in the package, and the letter indicates which variation....