The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

What is the <CODE>CONTINUE_IF_FAILED</CODE> equivalent of <CODE>RETURN_IF_FAILED</CODE>?
Dec 11, 2024
1
1

What is the CONTINUE_IF_FAILED equivalent of RETURN_IF_FAILED?

Raymond Chen
Raymond Chen

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

It rather involved being on the other side of this airtight hatchway: Disabling anti-malware scanning
Dec 10, 2024
3
0

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

Raymond Chen
Raymond Chen

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

Learning to read C++ compiler errors: Failing to create a <CODE>shared_ptr</CODE>
Dec 9, 2024
0
1

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

Raymond Chen
Raymond Chen

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

Learning to read C++ compiler errors: Nonsensical errors from a function declaration
Dec 6, 2024
3
0

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

Raymond Chen
Raymond Chen

Look closely at what the error message is complaining about.

Won’t waiting for multiple threads one at a time introduce a severe performance issue?
Dec 5, 2024
1
1

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

Raymond Chen
Raymond Chen

It depends on how long you plan on waiting.

Why does my DLL reference count go up by one every time I create and exit a thread?
Dec 4, 2024
0
2

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

Raymond Chen
Raymond Chen

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

News flash: Desire for loud cars correlates with psychopathy and sadism
Dec 2, 2024
1
2

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

Raymond Chen
Raymond Chen

More research into loud vehicles.

An analogy about register preservation rules in calling conventions
Dec 2, 2024
5
1

An analogy about register preservation rules in calling conventions

Raymond Chen
Raymond Chen

And tying it back to unwind codes.