The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Reordering C++ template type parameters for usability purposes, and type deduction from the future
Jun 9, 2023
Post comments count 4
Post likes count 1

Reordering C++ template type parameters for usability purposes, and type deduction from the future

Raymond Chen
Raymond Chen

You want them to go first, but you also want to deduce them.

How can I register a program to auto-relaunch if it crashes or is terminated?, redux
Jun 8, 2023
Post comments count 8
Post likes count 1

How can I register a program to auto-relaunch if it crashes or is terminated?, redux

Raymond Chen
Raymond Chen

You can get a little bit of the way there.

Pulling sleight of hand tricks in a security vulnerability report, episode 2
Jun 7, 2023
Post comments count 11
Post likes count 0

Pulling sleight of hand tricks in a security vulnerability report, episode 2

Raymond Chen
Raymond Chen

I see what you did there.

How can I make WiFi passwords per-user rather than per-system?
Jun 6, 2023
Post comments count 4
Post likes count 0

How can I make WiFi passwords per-user rather than per-system?

Raymond Chen
Raymond Chen

A little-known system configuration setting.

It’s great that you provide operator overloads, but it’s also nice to have names
Jun 5, 2023
Post comments count 8
Post likes count 0

It’s great that you provide operator overloads, but it’s also nice to have names

Raymond Chen
Raymond Chen

Avoiding the need to invoke the operator explicitly as a specialized template, among other things.

C++/WinRT event handlers that are lambdas with weak pointers to the parent class, part 3
Jun 2, 2023
Post comments count 0
Post likes count 0

C++/WinRT event handlers that are lambdas with weak pointers to the parent class, part 3

Raymond Chen
Raymond Chen

Extending to std::weak_ptr.

C++/WinRT event handlers that are lambdas with weak pointers to the parent class, part 2
Jun 1, 2023
Post comments count 0
Post likes count 0

C++/WinRT event handlers that are lambdas with weak pointers to the parent class, part 2

Raymond Chen
Raymond Chen

Working out the boilerplate.

C++/WinRT event handlers that are lambdas with weak pointers to the parent class, part 1
May 31, 2023
Post comments count 0
Post likes count 1

C++/WinRT event handlers that are lambdas with weak pointers to the parent class, part 1

Raymond Chen
Raymond Chen

Assessing the state of affairs.

How do I change the directory Windows uses for user profiles? revisited
May 30, 2023
Post comments count 10
Post likes count 0

How do I change the directory Windows uses for user profiles? revisited

Raymond Chen
Raymond Chen

You can still do it, but it's not really supported.