The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Oct 2, 2024
Post comments count 0
Post likes count 3

A function for creating an absolute security descriptor from a self-relative one

Raymond Chen

Just wrap it up.

Oct 1, 2024
Post comments count 5
Post likes count 5

Misunderstanding the “Prevent access to registry editing tools” policy

Raymond Chen

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

Sep 30, 2024
Post comments count 3
Post likes count 1

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

Raymond Chen

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

Sep 27, 2024
Post comments count 3
Post likes count 5

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

Raymond Chen

Who is corrupting the map?

Sep 26, 2024
Post comments count 3
Post likes count 3

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

Raymond Chen

Because the listview control uses it to optimize searching.

Sep 25, 2024
Post comments count 1
Post likes count 3

Another example of the Windows Runtime interop pattern: Using the UserConsentVerifier from a Win32 program

Raymond Chen

Following the standard pattern.

Sep 24, 2024
Post comments count 3
Post likes count 2

The UserConsentVerifier confirms that the user is there, but it doesn’t protect any data

Raymond Chen

Is that really you?

Sep 23, 2024
Post comments count 6
Post likes count 2

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

Raymond Chen

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

Sep 20, 2024
Post comments count 5
Post likes count 3

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

Raymond Chen

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