The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Apr 11, 2019
Post comments count 4
Post likes count 1

How can I determine the reason why my window is closing?

Raymond Chen

Listen for signals.

Apr 10, 2019
Post comments count 7
Post likes count 1

Even if you open a file with GUID, you can still get its name, or at least one of its names

Raymond Chen

GetFinalPathByHandle works even for files opened by ID.

Apr 9, 2019
Post comments count 8
Post likes count 1

When I select multiple files in the File Open dialog, why does the last item come first?

Raymond Chen

Because it's the focus.

Apr 8, 2019
Post comments count 13
Post likes count 1

Optimizing your cafeteria meal card stockpile

Raymond Chen

What's the rate of return on Microsoft cafeteria meal cards?

Apr 5, 2019
Post comments count 5
Post likes count 1

What does it mean when my attempt to stop a Windows NT service fails with ERROR_BROKEN_PIPE?

Raymond Chen

The Service Control Manager lost contact with the service, but why?

Apr 4, 2019
Post comments count 12
Post likes count 1

Why do we need atomic operations on the 80386, if it doesn’t support symmetric multiprocessing anyway?

Raymond Chen

You might race with yourself.

Apr 3, 2019
Post comments count 11
Post likes count 1

Dubious security vulnerability: Code execution via LNK file

Raymond Chen

The hard part is getting them to execute it in the first place.

Apr 2, 2019
Post comments count 3
Post likes count 0

On the bogosity of speculation: Guessing the price of the original Surface

Raymond Chen

Scraping the barrel.

Apr 1, 2019
Post comments count 10
Post likes count 1

Oh no, it’s inspection time again

Raymond Chen

Great moments in history.