The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
The .Default user is not the default user
If you ever gone spelunking in the registry key, you've no doubt found the user named . Who is this guy? Despite its name, the profile for the .Default user is not the default user profile. It's actually the profile for the Local System account and is an alias for . ( is the security identifier for the Local System account.) Consequently, settings in are used by programs and services that run as Local System. The most visible examples of programs that run as Local System are and , the programs that display the interface for logging onto the system. Whatever color scheme and screen saver you choose for the Loc...
West Bank Story, the movie that sells itself in five seconds
This weekend, I attended an Oscar-watching party, and when the clips from the nominees for Live Action Short Film were run, I was completely won over by West Bank Story. Five seconds of dancing, finger-snapping Jews and Arabs is all I needed. When filling out your Oscar party ballot, "Live Action Short Film" is one of those categories you just close your eyes and pick randomly since you don't know anything about any of the movies. It felt like everybody else at the party felt the same way I did: If we had seen that clip, we would all have voted for it. In our minds, it won the award before the envelope was even...
If you have to ask, you're probably doing something wrong
If you have to ask about various operating system limits, you're probably doing something wrong. If you're nesting windows more than 50 levels deep or nesting menus more than 25 levels deep or creating a dialog box with more than 65535 controls, or nesting tree-view items more than 255 levels deep, then your user interface design is in serious need of rethought, because you just created a usability nightmare. If you have to ask about the maximum number of threads a process can create or the maximum length of a command line or the maximum size of an environment block or the maximum amount of data you can ...
More Vista wallpapers from Hamad Darwish
Long Zheng does it again. He follows up his interview with Hamad Darwish with a report on what Hamad has been doing lately, as well as links to high resolution versions of the entire Vista wallpaper photo shoot, including photos that didn't make the final cut.
Another retired computer: The Alpha Rawhide
This computer didn't die like the previous one; it merely outlived it usefulness. In its prime, the machine was a force to be reckoned with. It was about the size of a small refrigerator and generated about as much noise as a vacuum cleaner. It contained four, count 'em, four Alpha AXP processors, each running at a mind-boggling 400 MHz. It had one gigabyte of RAM and thirteen gigabytes of hard drive space (striped over over a dozen fast SCSI drives). Hey, back in the 1990's these were impressive hardware specs. When it was in active use, the machine ran a batch file that simply grabbed the latest so...
How hard could it be? Must provide own garage.
A good friend of mine forwarded me this help-wanted ad on CraigsList: Need a programmer to make a Search Engine like Google I'm looking for some Programmer(s) who can help me create a search engine like Google. Only qualified person(s) encouraged to apply. Compensation: no pay Good luck with that.
What does an NMI error mean? (The infamous "Hardware Malfunction")
I promised to talk more about NMI, so here it is. What generates an NMI? What does it mean? The first question is easy to answer but doesn't actually shed much light: Any device can pull the NMI line, and that will generate a non-maskable interrupt. Back in the Windows 95 days, a few really cool people had taken the ball-point pen trick one step further: They had a special expansion card in their computer with a cord coming out the back. At the end of the cord was a momentary switch like the one you might see on a quiz show. If you pressed it, the card generated an NMI. No fumbling around with ball-point ...
The politician's fallacy and the politician's apology
I learned this from Yes, Minister. They call it the politician's fallacy: As befits its name, you see it most often in politics, where poorly-thought-out solutions are proposed for urgent problems. But be on the lookout for it in other places, too. You might see somebody falling victim to the politician's fallacy at a business meeting, say. Something else I picked up is what I'm going to call the politician's apology. This is where you apologize for a misdeed not by apologizing for what you did, but rather apologizing that other people were offended. One blogger coined the word "fauxpology" to describe this ...
Please feel free to stop using DDE
A commenter asked, "As an application programmer, can I really ignore DDE if I need to interact with explorer/shell?" The answer is, "Yes, please!" While it was a reasonable solution back in the cooperatively-multitasked world of 16-bit Windows where it was invented, the transition to 32-bit Windows was not a nice one for DDE. Specifically, the reliance on broadcasts to establish the initial DDE conversation means that unresponsive programs can jam up the entire DDE initiation process. The last shell interface to employ DDE was the communication with Program Manager to create program groups and items inside th...