The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jan 7, 2025
Post comments count 5
Post likes count 6

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

Raymond Chen

Looking for the magic button.

Jan 6, 2025
Post comments count 6
Post likes count 1

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

Raymond Chen

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

Jan 3, 2025
Post comments count 1
Post likes count 2

Forcing an ERROR_KEY_DELETED error when trying to open HKEY_CURRENT_USER\Software

Raymond Chen

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

Jan 2, 2025
Post comments count 1
Post likes count 2

Could I be getting ERROR_KEY_DELETED for HKEY_CURRENT_USER\Software when the user logs off?

Raymond Chen

Probably not, but there are some edge cases.

Jan 1, 2025
Post comments count 1
Post likes count 2

How is it possible to get ERROR_KEY_DELETED when I’m creating a key?

Raymond Chen

The key that got deleted is not the one you are trying to create.

Dec 31, 2024
Post comments count 6
Post likes count 3

2024 year-end link clearance

Raymond Chen

The cycle completes.

Dec 31, 2024
Post comments count 4
Post likes count 4

Making sure the Microsoft Visual C++ compiler chooses the right source encoding

Raymond Chen

Making sure the file and settings are set correctly.

Dec 30, 2024
Post comments count 4
Post likes count 4

How various git diff viewers represent file encoding changes in pull requests

Raymond Chen

The invisible UTF-8 BOM, and sometimes invisible encoding changes.

Dec 27, 2024
Post comments count 4
Post likes count 2

In C++, failure to meet the requirements does not always mean that you fail if you don’t meet the requirements

Raymond Chen

Combining SFINAE/requires, standard layout, and overload resolution.