The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Oct 30, 2009
Post comments count 0
Post likes count 0

Still working out the finer details of how this Hallowe'en thing works

Raymond Chen

Here's an excerpt from a conversation on the subject of Hallowe'en which I had with my niece some time ago. Let's call her "Cathy". (This is a different Cathy from last time.) "Cathy, what do you do on Hallowe'en?" "You get all dressed up and people give you candy." "What do you say when people come to the door?" "Chuck-E-Cheese!"

Oct 30, 2009
Post comments count 0
Post likes count 1

What is the format for FirstInstallDateTime on Windows 95?

Raymond Chen

It tries to be DOS date/time format but misses.

Oct 29, 2009
Post comments count 0
Post likes count 1

What this batch file needs is more escape characters

Raymond Chen

(Employing the snowclone "What this X needs is more Y.") Each time you add a parsing pass to the batch processor, you have to add another layer of escaping. This is just a special case of the more general rule of thumb: any problem in quoting can be solved by adding another layer of escaping. (Okay, it's not actually true, nor is it a rule of thumb, but it's still something to keep in mind.) When you enable delayed variable expansion, you add another parsing pass to the batch processor. It used to expand % variables at the time the line is ready, but now you told it that, oh wait, just before executing t...

Oct 28, 2009
Post comments count 0
Post likes count 1

Warning: Not much useful content inside

Raymond Chen

Remember, this Web site is for entertainment purposes only. Sometimes it takes people a little while before they realize this: I apologize for posting the link to the "Old New Thing" blog. [...] I have read a few articles in the "Old New Thing" blog and so far I have not seen much that is useful there.

Oct 28, 2009
Post comments count 0
Post likes count 1

Why does the Photo Gallery show all my photos with a colored tinge?

Raymond Chen

When you view your pictures with the Photo Gallery program which comes with Windows Vista, and which is also available for download from live.com, you might see a colored tinge. Where is the tinge coming from, and how do you get rid of it? Ironically, what you're actually seeing is the absence of a tinge, but you got so used to seeing the tinge, your eyes established the tinge as the new baseline. Not all display devices show exactly the same color when you ask them to display a particular RGB. The Windows Color System takes into account the color characteristics of output devices so that these variations can ...

Oct 27, 2009
Post comments count 0
Post likes count 0

If aluminum pull tab redemption is a rumor, what happens to all the tabs?

Raymond Chen

Everybody should know by now that it is not true that pull tabs from aluminum cans can be redeemed for time on a dialysis machine. Of course, not everybody actually knows this, and then the next question is, well, what happens to all those pull tabs collected by misinformed people? The Snopes article explains that it depends on where you turn in the tabs. They might get recycled at the going scrap rate and the proceeds donated to the National Kidney Foundation or the Ronald McDonald House. But I was most fascinated by this resourceful researcher who played the game of "follow the tabs" from a State Police of...

Oct 27, 2009
Post comments count 0
Post likes count 1

Freudian typo: The accidental emoticon

Raymond Chen

Some time ago, I ran across the following Freudian typo in a mail thread discussing plans for the project after Milestone 3, commonly abbreviated M3. I'd like to talk with you about your plans for this area after <3. On the US-English keyboard layout, the M and comma keys are adjacent, and a shifted comma is a less-than sign. A simple off-by-one-key typo resulted in M3 turning into an emoticon.

Oct 26, 2009
Post comments count 0
Post likes count 1

Why won't my computer go to sleep? Where is the energy going?

Raymond Chen

The utility has been around for a while, but in Windows 7, it gained a little bit more awesome. will analyze your computer's power consumption and report on things like devices that prevent the computer from sleeping, devices which won't suspend, and processes which are increasing your battery drain. Another neat flag is which will report on why your computer can't go to sleep, for example, because it has open files on the network, or because the clown will eat it.

Oct 26, 2009
Post comments count 0
Post likes count 1

Yes, there's a new desktop window manager, but no, I don't know any more about it than you do

Raymond Chen

Sean W. requests, via the suggestion box, "an in-depth discussion of the use of the shell's new Desktop Window Manager (Dwm*) functions in Win32." The desktop window manager is not actually part of the shell. It operates at the window manager level. (Notice that DWM is active even when Explorer isn't running.) You probably should have posted your suggestion to Greg Schechter's request for DWM topics which was not too old at the time you posted your topic suggestion. But then again, "Best practices for applications under the DWM" was on his list of future topics, so it looks like what you wanted was already on ...