The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Feb 18, 2016
Post comments count 0
Post likes count 1

Nasty gotcha: VarCmp vs VariantCompare

Raymond Chen

Similar names, different return values.

Feb 17, 2016
Post comments count 0
Post likes count 1

Don’t just grab the foreground window and host UI on it, redux

Raymond Chen

Oops, it's not there any more.

Feb 16, 2016
Post comments count 0
Post likes count 1

If I select multiple files of different types, why does the Open verb disappear?

Raymond Chen

It won't always work.

Feb 15, 2016
Post comments count 0
Post likes count 1

How can I get the name for the user’s profile directory that is shown in Explorer?

Raymond Chen

You ask the shell namespace.

Feb 12, 2016
Post comments count 0
Post likes count 1

We batched up our COM requests and return a single stream of results, but the performance is still slow

Raymond Chen

Your stream marshaled by reference.

Feb 11, 2016
Post comments count 0
Post likes count 1

Debugging walkthrough: Diagnosing an NX exception

Raymond Chen

Leap of faith.

Feb 10, 2016
Post comments count 0
Post likes count 1

If somebody creates or deletes a file in a directory while I am enumerating its contents, what happens?

Raymond Chen

It's not really predictable.

Feb 9, 2016
Post comments count 0
Post likes count 2

Hey, you work for Microsoft. Do you know…?

Raymond Chen

Sometimes the longshot pays off.