The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Dec 11, 2024
Post comments count 8
Post likes count 3

What is the CONTINUE_IF_FAILED equivalent of RETURN_IF_FAILED?

Raymond Chen

Be careful how you write it, or better: Don't write it at all.

Dec 10, 2024
Post comments count 3
Post likes count 1

It rather involved being on the other side of this airtight hatchway: Disabling anti-malware scanning

Raymond Chen

If you have already infiltrated the process, then you can disable things from the inside.

Dec 9, 2024
Post comments count 0
Post likes count 2

Learning to read C++ compiler errors: Failing to create a shared_ptr

Raymond Chen

Understanding what you asked the compiler to do, and why it couldn't comply.

Dec 6, 2024
Post comments count 4
Post likes count 1

Learning to read C++ compiler errors: Nonsensical errors from a function declaration

Raymond Chen

Look closely at what the error message is complaining about.

Dec 5, 2024
Post comments count 1
Post likes count 3

Won’t waiting for multiple threads one at a time introduce a severe performance issue?

Raymond Chen

It depends on how long you plan on waiting.

Dec 4, 2024
Post comments count 0
Post likes count 3

Why does my DLL reference count go up by one every time I create and exit a thread?

Raymond Chen

If you use a wrapper, you need to follow the wrapper's rules.

Dec 3, 2024
Post comments count 2
Post likes count 3

Tricks from product support: We’re not smart enough to debug the problem, can you help us?

Raymond Chen

It's not you, it's me.

Dec 2, 2024
Post comments count 1
Post likes count 5

News flash: Desire for loud cars correlates with psychopathy and sadism

Raymond Chen

More research into loud vehicles.

Dec 2, 2024
Post comments count 5
Post likes count 1

An analogy about register preservation rules in calling conventions

Raymond Chen

And tying it back to unwind codes.