The Old New Thing

Don't be helpless: At least look at the function you're using

Sometimes I see people ask a question and get an answer, but the answer doesn't quite work. But instead of trying to understand the answer in order to see why it doesn't work and develop a better solution, they just play stupid. Here's an example. The names have been changed but the story's the same. How do I get a handle to a bright pink ...

Session 0 isolation: Where backward compatibility loses to security

One of the major changes to services in Windows Vista is session 0 isolation. After reading the summary, you can follow that first supplementary link, Impact of Session 0 Isolation on Services and Drivers in Windows Vista, to dig deeper and receive guidance on how you need to modify your service. Then again, some of the questions I see ...

The administrator is an idiot

Nearly all computer administrators are idiots. That's not because the personnel department is incompetent or because it's impossible to train competent administrators. It's because, for a consumer operating system, the computer administrator didn't ask to be one. In nearly all cases, the computer administrator is dad or grandma.† They ...

Metromint: What were they thinking?

Some friends gave me a bottle of spearmint Metromint as a gift. And as it turns out, it was a mean-spirited gift. Let's look at that bottle. It calls itself "pure, simple mintwater®". What the heck is pure mintwater? Do you go to the local mintwater stream and collect it? Oh, wait, sorry. That should be mintwater®. With some ...

How my lack of understanding of how processes exit on Windows XP forced a security patch to be recalled

Last year, a Windows security update got a lot of flack for causing some machines to hang, and it was my fault. (This makes messing up a demo at the Financial Analysts Meeting look like small potatoes.) The security fix addressed a category of attacks wherein people could construct shortcut files or other items which specified a CLSID that was...

Unexpected consequences of self-checkout

I heard an interesting report on Marketplace on surprises in the self-checkout lane. Impulse buying is down, and stores have come up with other ways to entice you into buying something you hadn't planned. And it turns out that fears from retailers that customers would cheat at the self-checkout turned out to be misplaced: The reality of the...

Quick overview of how processes exit on Windows XP

Exiting is one of the scariest moments in the lifetime of a process. (Sort of how landing is one of the scariest moments of air travel.) Many of the details of how processes exit are left unspecified in Win32, so different Win32 implementations can follow different mechanisms. For example, Win32s, Windows 95, and Windows NT all shut...