The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Feb 20, 2015
Post comments count 0
Post likes count 1

Non-capturing C++ lambdas can be converted to a pointer to function, but what about the calling convention?

Raymond Chen

Nothing to see, so nothing to pass.

Feb 19, 2015
Post comments count 0
Post likes count 1

What's the point of using a custom timer queue if there is a default one already?

Raymond Chen

A customer observed that when you create a timer via , you have the option of passing either to get the default timer queue or a handle to a custom timer queue created by the function. Why would you want to create a custom timer queue? If you create a custom timer queue, then you know that all the timers in the queue are yours. For example, there might be another component in the process that creates a lot of timers in the default timer queue. If you had put your timers in the default timer queue, then your timers will risk starvation. It's the same sort of logic that might lead you to create a custom heap in...

Feb 18, 2015
Post comments count 0
Post likes count 1

When asking about the capacity of a program, you also need to consider what happens when you decide to stop using the program

Raymond Chen

It'll fit as long as you need it.

Feb 17, 2015
Post comments count 0
Post likes count 1

Microspeak: Light up

Raymond Chen

Enabling functionality when available.

Feb 16, 2015
Post comments count 0
Post likes count 0

The 2015/2016 Seattle Symphony subscription season at a glance

Raymond Chen

The pocket reference guide for 2015/2016.

Feb 16, 2015
Post comments count 0
Post likes count 2

Reading the word under the cursor via UI Automation

Raymond Chen

Grab and go.

Feb 13, 2015
Post comments count 0
Post likes count 1

What is this inconsistent heap state that MSDN warns me about during DLL_PROCESS_DETACH?

Raymond Chen

Following through on consequences of TerminateThread.

Feb 12, 2015
Post comments count 0
Post likes count 1

Who is this rogue operative that filled my object with 0xDD, then sent me a message?

Raymond Chen

Not really dead.

Feb 11, 2015
Post comments count 0
Post likes count 1

Why was the replacement installer for recognized 16-bit installers itself a 32-bit program instead of a 64-bit program?

Raymond Chen

It's the right thing to do.