The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Sep 25, 2008
Post comments count 0
Post likes count 0

The description of my 2008 PDC talk is wrong

Raymond Chen

The title is mostly okay, but the description is wrong. Thanks to the power of web scripting, I can't actually link to my talk; I can just link to the main session page, and then you'll have to go searching for it. (Maybe there's a direct link but I can't find it.) The title Windows 7: Deep Dive - What's New with Win32's user32 and comctl32 is mostly okay. Except that it's not Windows 7, because I don't talk about the future; I talk about the past. So it's really Windows Vista: Deep Dive - What Was New with Win32's user32 and comctl32. The description needs work, though. I submitted an update...

Sep 25, 2008
Post comments count 0
Post likes count 2

Even if a function doesn’t do anything, you still have to call it if the documentation says so, because it might do something tomorrow

Raymond Chen

If the documentation says that you have to call a function, then you have to call it. It may be that the function doesn't do anything, but that doesn't prevent it from doing something in the future. Today's example is the function , which returns you all the environment variables of the current process in a single block, which you can then study at your leisure. When you're finished, you're supposed to call . That's what the documentation says, and if you did that, then you're in good shape. However, some people noticed that on Windows NT 4, the Unicode version of the function didn't do anything. ...

Sep 24, 2008
Post comments count 0
Post likes count 0

When attending a training session on how not to mess up your life, try not to mess up your life

Raymond Chen

Like the NFL, the NBA has its own Rookie Transition Program for introducing new players to important issues such as life skills, money management, dealing with the media, and the importance of character and image in avoiding public embarrassment. Apparently it took longer than usual for these lessons to sink in for Mario Chalmers and Darrell Arthur, since they were caught in their hotel room with two unspecified women, and security claimed to have smelled marijuana although none was found. They were fined $20,000 apiece, and a fellow player was fined $50,000 for his involvement and failure to cooperate with ...

Sep 24, 2008
Post comments count 0
Post likes count 1

How do I change the size of my desktop icons?

Raymond Chen

Occasionally, somebody asks how to change the size of the desktop icons, not because they want to change the size from the default, but rather because they somehow turned into giant marshmallow men and they want to get the default size back. There are two ways to change the size of the desktop icons on Windows Vista: When people get into this state where the desktop icons are gargantuan, it's usually due to a mouse that went berserk thanks to some sort of hardware problem such as a loose connection. By the time the hardware problem is fixed, the mouse has clicked and twirled randomly all over the screen, cau...

Sep 23, 2008
Post comments count 0
Post likes count 1

Microspeak: Space delivery

Raymond Chen

As I noted in an earlier entry of Microspeak, the real estate department here has their own weird jargon. Today's phrase is "delivering space": Listed below is the schedule for delivery of space over the next twelve months. Translation: "Listed below is the schedule for when new office space will become ready for use over the next twelve months."

Sep 22, 2008
Post comments count 0
Post likes count 1

News flash: Doing something that requires your attention reduces your ability to do other things at the same time which also require your attention

Raymond Chen

The New York Times points out that if you engage in an activity that requires your attention, then it reduces your ability to do other things at the same time which also require your attention. For some reason, however this is news when one of those things is sending text messages. I wonder if, had contemporary news editors existed back in the days when books were invented, they would have published big scary articles expounding on the dangers of reading a book while riding a horse or chopping firewood.

Sep 22, 2008
Post comments count 0
Post likes count 1

I’ve seen why people steal the foreground window for their dialog box

Raymond Chen

Now, it may very well be true that many people who use as the owner for a dialog box because they don't know any better, but I'm not convinced that everyone who does so did it out of ignorance; I'm sure there's some malice in there, too. Here's how it may have gone down: Bug: I start the product setup, and then I go and work on something else, and then setup hits a problem, but the error message can't be seen because it's hidden behind another window. Result: Setup fails to complete. Expected: Error dialog is visible so user can address the problem and allow setup to complete. The programmer who i...

Sep 19, 2008
Post comments count 0
Post likes count 0

Steamy coffee leaves grounds for concern

Raymond Chen

I'm embarrassed for the bad pun,¹ but the subject is serious. Two stories appeared in the two major local newspapers on the same day. Sure, it may have been a coincidence, but I considered it a cautionary tale. Follow-ups Baristas resign en masse when the coffee stand owner decides to adopt a provocative dress code. Over a year later, NPR picks up the story. Footnotes ¹I'm not embarrassed for making a pun, just that it's a bad pun. (Some people would argue that there's no such thing as a good pun.)

Sep 19, 2008
Post comments count 0
Post likes count 1

How can I tell that a directory is weird and should be excluded from the user interface?

Raymond Chen

Last time, we looked at a customer who wanted to know how to tell whether a given folder was a Recycle Bin folder or not. We answered the question as stated, but made the mistake of not looking at the problem the customer was trying to solve. I need to know which folders are Recycle Bin folders so I can skip over them when searching the drive for content. Ah, the real question isn't "How can I tell whether a directory is a Recycle Bin folder?" but rather "How can I tell whether a directory contains weird stuff that we shouldn't be showing to the user (of which Recycle Bin files are just one example)?" The...