The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

We batched up our COM requests and return a single stream of results, but the performance is still slow
Feb 12, 2016
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

Your stream marshaled by reference.

Debugging walkthrough: Diagnosing an NX exception
Feb 11, 2016
Post comments count 0
Post likes count 0

Debugging walkthrough: Diagnosing an NX exception

Raymond Chen
Raymond Chen

Leap of faith.

If somebody creates or deletes a file in a directory while I am enumerating its contents, what happens?
Feb 10, 2016
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

It's not really predictable.

Hey, you work for Microsoft. Do you know…?
Feb 9, 2016
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

Sometimes the longshot pays off.

How can I get the canonical name for a known folder?
Feb 8, 2016
Post comments count 0
Post likes count 0

How can I get the canonical name for a known folder?

Raymond Chen
Raymond Chen

You ask it.

The overly complicated rules for American football
Feb 5, 2016
Post comments count 0
Post likes count 0

The overly complicated rules for American football

Raymond Chen
Raymond Chen

Attempting to close a loophole creates another loophole.

If I issue a second overlapped I/O operation without waiting for the first one to complete, are they still guaranteed to complete in order?
Feb 5, 2016
Post comments count 0
Post likes count 0

If I issue a second overlapped I/O operation without waiting for the first one to complete, are they still guaranteed to complete in order?

Raymond Chen
Raymond Chen

Of course not. That's why it's called "overlapped."

How do I prevent a child process from displaying the Windows Error Reporting dialog?
Feb 4, 2016
Post comments count 0
Post likes count 0

How do I prevent a child process from displaying the Windows Error Reporting dialog?

Raymond Chen
Raymond Chen

Take advantage of the fact that SetErrorMode is inherited.

Localization gotcha: The RTL question mark
Feb 3, 2016
Post comments count 0
Post likes count 0

Localization gotcha: The RTL question mark

Raymond Chen
Raymond Chen

Depends on the locale.