Showing results for Old New Thing - The Old New Thing

Sep 25, 2008
Post comments count0
Post likes count0

The description of my 2008 PDC talk is wrong

Raymond Chen
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...

Other
Sep 25, 2008
Post comments count0
Post likes count1

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
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 ...

History
Sep 24, 2008
Post comments count0
Post likes count0

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

Raymond Chen
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 Arth...

Non-Computer
Sep 24, 2008
Post comments count0
Post likes count0

How do I change the size of my desktop icons?

Raymond Chen
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 s...

Tips/Support
Sep 23, 2008
Post comments count0
Post likes count0

Microspeak: Space delivery

Raymond Chen
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....

Non-ComputerMicrospeak
Sep 22, 2008
Post comments count0
Post likes count1

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
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 d...

Non-ComputerNews flash
Sep 22, 2008
Post comments count0
Post likes count0

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

Raymond Chen
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 el...

Code
Sep 19, 2008
Post comments count0
Post likes count0

Steamy coffee leaves grounds for concern

Raymond Chen
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...

Non-Computer
Sep 19, 2008
Post comments count0
Post likes count0

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

Raymond Chen
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 f...

Code
Sep 18, 2008
Post comments count0
Post likes count0

How can I tell that a directory is really a recycle bin?

Raymond Chen
Raymond Chen

Here's a question inspired by an actual customer question: I need a function that, given a path, tells me whether it is a Recycle Bin folder. I tried using functions like SHGetSpecialFolderPath with CSIDL_BITBUCKET, but that doesn't work because the Recycle Bin is a virtual folder that is the union of the Recycle Bins of all drives. The custom...

Code