The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
On the importance of sanity-checking values where money is involved
Last year, one of my colleagues noticed that one particular company's stock, which normally trades in the mid- to upper-$20 range, showed one day of extremely unusual results, very similar to the last example in this series of funny screenshots. Closer inspection revealed that there was an order to buy 28 shares at $100,000. Obviously, somebody got the "number of shares" and "bid price" fields backwards and ended up losing over two million dollars for the error. If this were an NYSE stock, this error would have been caught because trades on the New York Stock Exchange are still executed by human beings on...
Why isn’t there a separate British English version of Windows?
My friend ::Wendy:: asks why there is an American English version of Windows but not a British English version. I am not the expert on this subject (Michael Kaplan might be a bit closer), but I can speculate on the reasons for this. This is all conjecture, so who knows how accurate it is. (Actually, most of what I write is conjecture; I just don't bother calling it out each time it happens.) Let's look at it this way: You have the time and money to translate the American English version of Windows into 20 other languages. Do you spend one of those slots to translate it into a language that is mutually intel...
I’m sorry, Brian George, but we got cut off and I couldn’t call you back
Yesterday, at 4 o'clock in the afternoon, I receive a telephone call at work. There is that characteristic pause after connecting which tells me that I have probably just been called by a telemarketer. "Hello?" — Hello, I'm Brian George from Liquid Capital Management. Our company founder, Brian Kim, has been working closely with Microsoft employees to help them with financial matters. Are you familiar with hedge funds? I hear another voice in the background. This is almost certainly a boiler room operation. "There appears to be another voice on the line, do you hear it? Oh wait, it's gone. Could...
Bonus chatter about that virus that is responsible for the top six Explorer crashes
Last year, I wrote about a virus that is responsible for the top six Explorer crashes, by a wide margin. I learned later how the authors of this XYZ Virus operate, and it happens to answer a question posted by commenter SteveL as to why these virus writers are so incompetent that they crash so much. First, the virus authors infect your computer and crash your system every so often on purpose. Meanwhile, they also set up a legitimate-looking Web site which sells anti-virus software that claims to remove this virus. You send them your money, they send you the software. The kicker is that the removal softw...
Cool guys don’t look at explosions
Thanks to NPR's Monkey See blog for finding this:
Why can’t I rotate the display with ChangeDisplaySettingsEx?
If you have one of those cool swively LCD displays (or if you decided to build your own), you naturally want to tell your video card to display rotated output, so you can take advantage of the portrait orientation. And naturally you would think that calling the and using the field of the structure would do the trick. And then you would find that it doesn't work. Yet the annoying utility program (which gets shoveled onto your computer when you install the driver) can rotate the video output. How come they can do it, but can't? Because the video card vendor decided to do it in a nonstandard way so that...
Last tube standing: The Cardboard Tube Fighting League
Dodge, parry, thrust. Welcome to the Cardboard Tube Fighting League. (I happened to be in Gasworks Park for a totally unrelated reason and managed to catch the final battle of the Seattle branch's 2008 Tournament.)
What does the “Zw” prefix mean?
If you spend time in kernel mode, you're accustomed to seeing functions with two-letter (or occasionally, three-letter) prefixes that indicate which component they belong to. What does the "Zw" mean? Answer: Nothing. The people who chose the letters wanted to pick something that was unlikely to collide with anything. Perhaps they had a prior bad experience with having chosen a prefix, only to find that somebody ahead of them claimed it already?
Spam trackback attack returns, it’s not a matter of whether but how much
Like microsoft.com, the question isn't whether blogs.msdn.com site is under attack but rather how bad the attack is right now. There are a number of regular culprits, like , , , but those sites tend to focus on the most recent few articles. A new category of trackback spammer is here: The I'm going to scrape your entire site and create a trackback for every article trackback spammer. I'm pretty sure this will continue for at least the next week. I think I'm going to have to write a script that auto-deletes all these bogus trackbacks.