Showing archive results for 2012

Nov 26, 2012
Post comments count0
Post likes count1

Puzzling triple rainbow clearly identifies location of pot of gold

Raymond Chen

I noted to some friends that the weather forecast for Seattle two weekends ago called for rain on Friday, rain on Saturday, and rain on Sunday. But at least on Monday, the forecast was not for rain. It was for heavy rain. One of the consequences of Seattle's annual Rain Festival (runs from January 1 to December 31) is that we get plenty of potent...

Non-Computer
Nov 26, 2012
Post comments count0
Post likes count1

How does the window manager decide where to place a newly-created window?

Raymond Chen

Amit wonders how Windows chooses where to place a newly-opened window on a multiple-monitor system and gives as an example an application whose monitor choice appears inconsistent. The easy part is if the application specifies where it wants the window to be. In that case, the window is placed at the requested location. How the application choose...

Code
Nov 23, 2012
Post comments count0
Post likes count0

The Hater's Guide to the Williams-Sonoma Catalog

Raymond Chen

Today is the traditional start of the holiday shopping season in the United States. If you are thinking of getting something from Williams-Sonoma, Drew Margary has selected a few items of note for your consideration (NSFW: language). (It cracks me up that the model is using the batter dispenser which "measures out uniform circles" to fill a squa...

Non-Computer
Nov 23, 2012
Post comments count0
Post likes count1

When studying performance, you need to watch out not only for performance degradation, but also unexpected performance improvement

Raymond Chen

In addition to specific performance tests run by individual feature teams, Windows has a suite of automated performance tests operated by the performance team, and the results are collated across a lot of metrics. When a number is out of the ordinary, the test results are flagged for further investigation. The obvious thing that the performance me...

Other
Nov 22, 2012
Post comments count0
Post likes count1

The resource compiler will helpfully add window styles for you, but if you're building a dialog template yourself, you don't get that help

Raymond Chen

A customer was having trouble with nested dialogs. They were doing something very similar to a property sheet, with a main frame dialog, and then a collection of child dialogs that take turns appearing inside the frame dialog based on what the user is doing. The customer found that if they created the child dialogs with the function, everything ...

Code
Nov 21, 2012
Post comments count0
Post likes count1

It rather involved being on the other side of this airtight hatchway: Silently enabling features

Raymond Chen

A security vulnerability report arrived which went roughly like this: When you programmatically enable the XYZ feature, the user receives no visual alert that it is enabled. As a result, malware can enable this feature and use it as part of an attempt to turn the machine into a botnet zombie. The XYZ feature should notify the user when it is enabl...

Other
Nov 20, 2012
Post comments count0
Post likes count1

How do I use group policy to improve security of USB thumb drives in my organization?

Raymond Chen

A customer wanted to know how they could improve the security of USB thumb drives in their organization. Specifically, they wanted to block access to removable media devices (primarily USB thumb drives), but provide a list of exceptions for specific thumb drives. Fortunately, there's a whitepaper that covers exactly this topic and explains how to ...

Tips/Support
Nov 20, 2012
Post comments count0
Post likes count1

Microspeak: touch base

Raymond Chen

The verb phrase touch base is in general business jargon use, but it's quite popular at Microsoft. To touch base with someone is to contact someone in a lightweight and mostly-informal sort of way. In other words, it takes the form of a piece of email or a brief office visit rather than a formal meeting with an agenda. Bob, can you touch base w...

Non-ComputerMicrospeak
Nov 19, 2012
Post comments count0
Post likes count0

Raymond's podcast list (for 2011, at least)

Raymond Chen

Ry Jones wants to know what other podcasts I subscribe to. Remember, I wrote this back in 2011. Here's what I listen to. Note that I am not averse to fast-forwarding over parts that don't interest me, such as when they discuss a movie that I simply don't care about.

Non-Computer
Nov 16, 2012
Post comments count0
Post likes count1

How do I forward an exported function to an ordinal in another DLL?

Raymond Chen

The syntax for specifying that requests to import a function from your DLL should be forwarded to another DLL is This says that if somebody tries to call from , they are really calling in . This forwarding is done in the loader. Normally, when a client links to the function , the loader says, "Okay, let me get the address of the function in...

Code