The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Raymond Chen
Raymond Chen
Nov 5, 2014

Passing the incorrect object type for a handle, how bad is it?

A customer asked a somewhat strange question: "We are calling but passing the handle to a waitable timer. Application Verifier reports, "Incorrect object type ...

0
0
Raymond Chen
Raymond Chen
Nov 4, 2014

Microspeak: Line of sight

I first encountered this term in a meeting I attended. Q: We would like to be able to reverse the polarity of the neutron flow without requiring a reboot. A...

0
0
Raymond Chen
Raymond Chen
Nov 3, 2014

Applying a filter to the contents of an Explorer Browser

Today's Little Program hosts an Explorer Browser but filters the contents to remove DLL files. You can, of course, substitute your own filter. (For example, ...

0
1
Raymond Chen
Raymond Chen
Oct 31, 2014

The case of the file that won't copy because of an Invalid Handle error message

A customer reported that they had a file that was "haunted" on their machine: Explorer was unable to copy the file. If you did a copy/paste, the copy dialog ...

0
0
Raymond Chen
Raymond Chen
Oct 30, 2014

Why is the FAT driver called FASTFAT? Why would anybody ever write SLOWFAT?

Anon is interested in why the FAT driver is called FASTFAT.SYS. "Was there an earlier slower FAT driver? What could you possibly get so wrong with a FAT ...

0
1
Raymond Chen
Raymond Chen
Oct 29, 2014

The contents of the Start page are not programmatically accessible

A customer wanted to know if is possible for an application to edit the user's Start page. No, there is no interface for editing the user's Start page or even ...

0
0
Raymond Chen
Raymond Chen
Oct 28, 2014

A question about preventing the system from going to the idle state turns out to be misguided

A customer asked how they could have their program prevent the system from going to the idle state. Specifically, when the system goes idle, the application ...

0
0
Raymond Chen
Raymond Chen
Oct 27, 2014

Enumerating the ways of distributing n balls into k boxes

Suppose you had n indistinguishable balls and k distinguishable boxes. Enumerate the ways of distributing the balls into boxes. Some boxes may be empty. We ...

0
0
Raymond Chen
Raymond Chen
Oct 24, 2014

Debugging a hang: Chasing the wait chain inside a process

Today we're going to debug a hang. Here are some of the (redacted) stacks of the process. I left some red herrings and other frustrations. Since debugging ...

0
2