The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Feb 2, 2007
Post comments count 0
Post likes count 0

Super Bowl Sunday: The day the entire country stops doing anything

Raymond Chen

This upcoming Sunday features an event that means absolutely nothing to people outside the United States: The Super Bowl. I call it an event because it is more than simply a football game. It's an American institution. Even people who think a nose guard is a piece of safety equipment will watch the game, or at least pretend to be interested in it for a few hours. At a party last year, I met someone who spent time as an emergency room doctor, and he told me that the entire hospital goes quiet when the Super Bowl is on. Patients don't come in. Inpatients don't call for nurses. Those who are already in the waitin...

Feb 2, 2007
Post comments count 0
Post likes count 1

The ironic thing about fixing a bug

Raymond Chen

The ironic thing about fixing a bug, or at least once I mention on this web site that I fixed a particular bug, is that people immediately complain that I didn't fix some other bug. One school of complaint believes that cosmetic bugs should be fixed first: "You suck. I mean, look at these egregious cosmetic bugs. If you can't get even those right, then obviously you can't get the other stuff right either." The opposite school believes that cosmetic bugs should be fixed last: "You suck. I mean, why are you fixing cosmetic bugs when there are these other bugs!" But at least both camps agree on one thing: I suck...

Feb 1, 2007
Post comments count 0
Post likes count 1

The network interoperability compatibility problem, second follow-up

Raymond Chen

I post this entry with great reluctance, because I can feel the heat from the pilot lights of the flame throwers all the way from here. The struggle with the network interoperability problem continued for several months after I brought up the topic. In that time, a significant number of network attached storage devices were found that did not implement "fast mode" queries correctly. (Buried in this query are some of them; there are others.) Some of them were Samba-based whose vendors did not have an upgrade available that fixed the bug. But many of them used custom implementations of CIFS; consequently, any Sam...

Jan 31, 2007
Post comments count 0
Post likes count 1

If you ask an author to sign a book, you have to tell him/her what to write

Raymond Chen

If you happen to catch me, say by stopping by my office if you happen to work at Microsoft, I'd be happy to sign your copy of my book. (There's no need to set up a formal book signing appearance in building 9; just stop by my office any time.) One of the things you don't realize as a fan waiting in line at a book signing is that when you get to the front of the line, you have to tell the author what to write. It's obvious once you think about it. The author doesn't know anything about you. You're just one person out of hundreds they're going to sign for today. How should they know what to write? So don't...

Jan 31, 2007
Post comments count 0
Post likes count 1

Crackpots in computer security: A complete solution to computer security

Raymond Chen

Now that computer security grabs headlines, the crackpots are drawn to it. This means that the security folks are innundated with dubious vulnerability reports and revolutionary computer designs. Today's story is one of the "revolutionary computer designs" category. I have developed a complete solution to computer security. Construct one case but with two CPUs inside. Each CPU gets its own hard disk, keyboard port, monitor port, mouse port, etc. You also have a keyboard, mouse, and monitor with two cables, one that goes to the first CPU's I/O ports and another that goes to the second CPU's I/O ports. You t...

Jan 30, 2007
Post comments count 0
Post likes count 1

Unusual uses for a ball-point pen: Breaking into the debugger

Raymond Chen

Ah, the ISA bus...

Jan 29, 2007
Post comments count 0
Post likes count 1

If vertical strips are better, why do toolbars use horizontal strips?

Raymond Chen

If vertical strips are better, why do toolbars use horizontal strips? An early version of the toolbar control first made its appearance in Windows 3.0, and in those days, screen resolutions were low and toolbar buttons were small. Horizontal or vertical didn't really matter. Ten bitmaps, each 16 × 16, at 4-bit color, comes out to one kilobyte, much less than even a single 4KB page. (And what's this paging nonsense anyway? We're talking 16-bit Windows here!) When this code was ported to 32-bit Windows for Windows 95, the existing bitmap format was preserved in order to retain compatibility with...

Jan 26, 2007
Post comments count 0
Post likes count 0

The real underground (and subway)

Raymond Chen

London's Transport Museum commissioned a gorgeous interactive map called The Real Underground which lets you see two of the many versions of the world-famous London Underground Map, as well as a street map, and switch among them to see how the two schematics agree with actual geography. I wasted way too much time playing with the Real Underground. Now it's your turn. (Looking at the evolution of transit maps, you can see that it was Harry Beck's breakthrough map from 1933 that changed the face of tube maps forever.) There appears to be a similar effort to do the same to the New York Subway map, published b...

Jan 26, 2007
Post comments count 0
Post likes count 1

The /MAXMEM switch doesn't set the maximum amount of memory Windows will use

Raymond Chen

The Windows file has a switch whose name would lead you to believe that it sets the maximum amount of memory that Windows will use. But that's not what it does; the name is misleading. What the flag really does is set the maximum physical address that Windows will scan in search of RAM. If your physical memory map contains discontiguous chunks of RAM, such as the one at the 3.5GB boundary in the sample diagram I drew a few months ago, then the amount of RAM Windows finds will be less than the value you specified. For example, if there were a gap between 128MB and 256MB (said gap used by some hardware device...