Showing results for October 2007 - The Old New Thing

Oct 31, 2007
0
0

The Acorn Wand, key to a magical puzzle hunt

Raymond Chen
Raymond Chen

Puzzle hunts are a popular pastime at Microsoft. For the Microsoft Intern Puzzleday 2007, the puzzle design team decided upon a Harry Potter theme. Competitors ("students") formed teams ("study groups") as they attended classes at the Hogwarts campus at Microsoft. Of course, since this is Harry Potter, you need a magic wand, so the puzzle design ...

Non-Computer
Oct 31, 2007
0
0

It rather involved being on the other side of this airtight hatchway: Local execution

Raymond Chen
Raymond Chen

The security response team gets all sorts of reports, and a good number of them are from people who just get excited that they were able to do something unusual, even if it isn't a security vulnerability. Attached please find a security exploit in the ABC ActiveX control. If you save this Web page to a file and double-click it, it <does ...

Other
Oct 30, 2007
0
0

Email tips from Adam Phillabaum

Raymond Chen
Raymond Chen

Adam Phillabaum of Doing Boeing (who kept the name even though he left Boeing and now works for PayScale) has his own tips for writing email. Recommended reading...

Non-Computeremail
Oct 30, 2007
0
0

You can't change it, but you can hide it and add something that looks like it

Raymond Chen
Raymond Chen

Today we have another case of "Now you have two problems." The corporate customer already solved their problem halfway and needed help on the other half. The impossible half. We want to change the Add or Remove Programs icon in the Windows XP control panel so it runs our custom install management program instead of running the one built into ...

Tips/Support
Oct 29, 2007
0
0

Why doesn't Explorer show recursive directory size as an optional column?

Raymond Chen
Raymond Chen

"Why start up another program to see folder sizes, when they should just be right there, in Explorer, all the time?" The same reason \\ does not autocomplete to all the computers on the network: Because it would destroy corporate networks. Showing folder sizes "all the time" means that when you open, say, the root of a large server, Explorer ...

History
Oct 26, 2007
0
0

The King County Council race gets even stranger

Raymond Chen
Raymond Chen

I told you it was going to get weird. In the month since my last report, there have been a few developments in the county council race between an accused drunk (the incumbent) and a fringe candidate (the challenger). The Seattle Times tries to summarize the state of the race with a series of articles...

Non-Computer
Oct 26, 2007
0
0

If you pass enough random numbers, eventually one of them will look valid

Raymond Chen
Raymond Chen

One customer traced a problem they were having to the way they were calling a function similar in spirit to this one: This function takes a clipboard format and looks for it on the clipboard. If found, it returns a copy of the data. Looks great, huh? The problem is that the customer would sometimes call the function as . The clipboard ...

Code
Oct 25, 2007
0
0

What's the deal with the EM_SETHILITE message?

Raymond Chen
Raymond Chen

If you look up the documentation on the and messages, they just say "not implemented". What's going on here? The and messages were added back in 2002 for the breadcrumb bar to use. Back in those days, the breadcrumb bar wasn't what you see in Windows Vista today, a series of buttons with drop-down arrows, each representing a level in the ...

History
Oct 24, 2007
0
0

What's the difference between LVM_HITTEST and LVM_INSERTMARKHITTEST?

Raymond Chen
Raymond Chen

One customer was confused by the two list view hit-test messages and . What is the difference between the two? The message tries to find the item the point is over. The message tries to find the item the point is next to. For example, suppose you have two 32×32 items, item zero at (0, 0) and item one at (0, 32). You use ...

Code
Oct 23, 2007
0
0

Superstition: Why is GetFileAttributes the way old-timers test file existence?

Raymond Chen
Raymond Chen

If you ask an old-timer how to test for file existence, they'll say, "Use ." This is still probably the quickest way to test for file existence, since it requires only a single call. Other methods such as or require a separate or call, which triggers another network round-trip, which adds to the cost. But back in the old days, the preference ...

History