The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Raymond Chen
Raymond Chen
Oct 1, 2024

Misunderstanding the “Prevent access to registry editing tools” policy

It prevents access to the tools, but not to the registry itself.

5
4
Raymond Chen
Raymond Chen
Sep 30, 2024

Pulling a single item from a C++ parameter pack by its index, remarks

Why such a complicated way to pull the type from the pack?

3
0
Raymond Chen
Raymond Chen
Sep 27, 2024

The case of the crash when destructing a std::map

Who is corrupting the map?

3
5
Raymond Chen
Raymond Chen
Sep 26, 2024

If you’re going to specify the LVS_SORTASCENDING or LVS_SORTDESCENDING style, you had better be telling the truth

Because the listview control uses it to optimize searching.

3
2
Raymond Chen
Raymond Chen
Sep 23, 2024

Going beyond the empty set: Embracing the power of other empty things

Just because there's nothing in it doesn't mean it's not valid.

6
1
Raymond Chen
Raymond Chen
Sep 20, 2024

How can I check that all the changes in a git branch have been cherry-picked or rebased into its upstream branch?

You can pretend to merge it and see if anything happens.

5
2
Raymond Chen
Raymond Chen
Sep 19, 2024

My window has the WS_EX_NOACTIVATE extended style, but it got activated anyway

Well, at least it wasn't activated by a click.

0
3