The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

A helper template function to wait for a Win32 condition variable in a loop
Jan 19, 2018
Post comments count 0
Post likes count 0

A helper template function to wait for a Win32 condition variable in a loop

Raymond Chen
Raymond Chen

Another case of the spurious wake-up.

Stuff my father-in-law says: On taking the train
Jan 18, 2018
Post comments count 0
Post likes count 0

Stuff my father-in-law says: On taking the train

Raymond Chen
Raymond Chen

A five-minute tour.

A helper template function to wait for WaitOnAddress in a loop
Jan 18, 2018
Post comments count 0
Post likes count 0

A helper template function to wait for WaitOnAddress in a loop

Raymond Chen
Raymond Chen

Because this is what you always have to do.

Why does <CODE>HRESULT</CODE> begin with H when it’s not a handle to anything?
Jan 17, 2018
Post comments count 0
Post likes count 1

Why does HRESULT begin with H when it’s not a handle to anything?

Raymond Chen
Raymond Chen

Well, it used to be a handle.

As far as the French government is concerned, I am the expert on Windows XP
Jan 16, 2018
Post comments count 0
Post likes count 1

As far as the French government is concerned, I am the expert on Windows XP

Raymond Chen
Raymond Chen

At least it's my name on the paperwork.

How do I know that Resource Monitor isnt just retaining a handle to the terminated process?
Jan 15, 2018
Post comments count 0
Post likes count 0

How do I know that Resource Monitor isnt just retaining a handle to the terminated process?

Raymond Chen
Raymond Chen

Let's try it again, with feeling.

Why don’t context menus respect the UI state for keyboard accelerators?
Jan 12, 2018
Post comments count 0
Post likes count 0

Why don’t context menus respect the UI state for keyboard accelerators?

Raymond Chen
Raymond Chen

Well, technically, they're a separate window.

What does it mean when the documentation says that you must specify the app in the system’s metadata before you can retrieve <CODE>Smbios­Information</CODE> properties?
Jan 11, 2018
Post comments count 0
Post likes count 0

What does it mean when the documentation says that you must specify the app in the system’s metadata before you can retrieve Smbios­Information properties?

Raymond Chen
Raymond Chen

It's talking to a specific "you" that's not you.

Why is there a semicircular bar at the base of the ORCA card reader?
Jan 10, 2018
Post comments count 0
Post likes count 0

Why is there a semicircular bar at the base of the ORCA card reader?

Raymond Chen
Raymond Chen

Another mystery.