The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
Things I've written that have amused other people: Episode 6
On an internal discussion group, somebody decided to quote one of my blog entries. Jim Medding was amused by my response: Bloggers are just idiots with a Web site. (My blog was dug up in order to refute a claim, even though the blog entry applied to a situation different from the one under discussion.)
I'm sorry, Brian/Bryan Gregory, that confirming the spelling of your name is too much for you to handle
At 10am on November 30, I received a telephone call at work with "Anonymous" as the caller ID. Strange. But maybe it's the same person who called my office phone from New York at 1am on the day after Thanksgiving and didn't leave a message, and they're just following up on the first business day after the holiday weekend. "Hello?" — Hello, this is Brian Gregory from Fred Asher Associates and I'm calling blah blah blah blah blah are you interested in this opportunity or know someone who is? I may have gotten the names wrong since he spoke so quickly. "I'm sorry, that was a bit fast. Your name is Brian Gr...
What is the story behind multimon.h?
Commenter asdf wonders what the deal is with that header file. Let's set some context. That header file was written back in the time when Windows 98 was still under development. Windows 98 was the first version of Windows to support multiple monitors. At the time, most application authors had Windows 95 as their target platform. And even after Windows 98 shipped, the expectation was that programmers would target both Windows 95 and Windows 98 for at least a little while longer. The problem then is convincing programmers to write their code in a manner that works well in the face...
Why do some comments have a star?
Every so often, someone posts a really funny comment, and I feel stupid just posting the remark "Haha, that was funny" or even worse "LOL". So I'm going to try giving them a star instead. Chris Blackwell wins the first star. Hopefully people won't post comments just fishing for a star. (I realize that this is a vain hope and that I will probably have to cancel the star program within the week.)
When there is a long line of people waiting for a shared resource, you want to investigate the person who is hogging the resource, not the people waiting in line for it
If you see a long line of people waiting for a phone booth (note: this analogy assumes you remember how phone booths work), and you want to understand the reason for the long line, do you Go to a person waiting in line and begin your investigation there? Go to the phone booth (and the person inside) and begin your investigation there? If there is a long line of people waiting for a single resource, a resource that there is not normally a long line for, you would probably look at the person who is using the resource to see if, for example, they are a chatterbox who will be on the phone for an hour, or if ...
Why do Swedes count "1, X, 2"?
Occasionally, when an article in Swedish needs to count off three items, they are not labelled "1, 2, 3" but rather "1, X, 2". Why is that? I asked Jesper Holmberg, and he was kind enough to explain. (The entire exchange naturally was conducted in Swedish. Here's my translation.) As with most of the good things in life, it has to do with football [soccer]. In Sweden, it is not only legal to bet on horse races, football, and other stuff, but the Swedish government even has its own betting agency. "One, cross, or two" comes from the betting ticket, the slip of paper you fill in when you be...
What is the effect of setting the /3GB switch on my 64-bit Windows machine?
Nothing.
Fake trend watch: Bridesmaid pre-nuptial agreements
The only actual citation was a joke, yet it's a trend?
A shell extension is a guest in someone else's house; don't go changing the carpet
A customer was running into this problem with a shell extension: I am writing a shell namespace extension. I need to get data from a COM server, which requires impersonation via with . As I am just writing an extension into , I am not able to call , anymore from my extension. Is there a way I can start by setting in its COM initialization? I was browsing through web, and seems to take some settings from registry, but couldn't find anything related to this one. First of all, who says that the host process is ? If I open Notepad, then do a File.Open, and then navigate to your shell extension, boom, your sh...