The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

A simplified overview of ways to add or update elements in a <CODEstd::map" />
Jan 13, 2025
2
0

std::map"> A simplified overview of ways to add or update elements in a std::map

Raymond Chen
Raymond Chen

And using it to find missing opportunities.

Why does inadvertently passing a <CODEstd::string instead of a char const* to a variadic function crash on x86-32 but not x86-64?" />
Inside STL: Waiting for a <CODEstd::atomic<std::shared_ptr<T>> to change, part 2" />
Inside STL: Waiting for a <CODEstd::atomic<std::shared_ptr<T>> to change, part 1" />
Emergency power resets on Lenovo, HP, Dell, and Acer laptops
Jan 7, 2025
5
4

Emergency power resets on Lenovo, HP, Dell, and Acer laptops

Raymond Chen
Raymond Chen

Looking for the magic button.

How can I tell whether a change to a control was due to the user or due to my program?
Jan 6, 2025
5
0

How can I tell whether a change to a control was due to the user or due to my program?

Raymond Chen
Raymond Chen

You know when it was done by your program because you did it.

Forcing an <CODEERROR_KEY_DELETED error when trying to open HKEY_CURRENT_USER\Software" />
Jan 3, 2025
1
1

ERROR_KEY_DELETED error when trying to open HKEY_CURRENT_USER\Software"> Forcing an ERROR_KEY_DELETED error when trying to open HKEY_CURRENT_USER\Software

Raymond Chen
Raymond Chen

Just an exercise to show that it can be done, even though it's highly unlikely to occur in practice.

Could I be getting <CODEERROR_KEY_DELETED for HKEY_CURRENT_USER\Software when the user logs off?" />