The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts

A clarification on the multithreading constraints of the EncryptMessage
function

Reading a sentence in the context of the whole paragraph.

How can I get information about media playing on the system, and optionally control their playback?

Going to the global system media transport controls world.

“Stop sharing this folder” is not the same as “Never share this folder”

It stops sharing the folder, but that doesn't prevent you from starting it again.

Why doesn’t reduction by modulo work for floating point values?

Working out why it works for integers and seeing what goes wrong.

Why does unsafe multithreaded use of an std::unordered_map
crash more often than unsafe multithreaded use of a std::map
?

It's all in the implementation details.

How come my custom exception message is lost when it is thrown from a IAsyncAction^
?

Things that survive in the C++ world and things that are lost when you cross the ABI.

More notes on use of the DS_CONTROL
style

Styles that have to go in, and styles that have to come out. (And styles that you can choose.)

What is the thread reaper?

Should you fear the thread reaper?

What are the dire consequences of not removing all the properties that were set via SetProp
?

Not so much any more, but it could be a sign that you forgot something.