The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

May 6, 2016
Post comments count 0
Post likes count 1

Is it okay to acquire an SRWLOCK recursively? (And why not?)

Raymond Chen

The documentation says it's not allowed, so it's not allowed.

May 5, 2016
Post comments count 0
Post likes count 1

How can I write an unkillable program, redux

Raymond Chen

License to not be killed.

May 4, 2016
Post comments count 0
Post likes count 1

How can I detect whether the user’s keyboard has a Break key?

Raymond Chen

Looking at the problem the wrong way.

May 3, 2016
Post comments count 0
Post likes count 1

Getting MS-DOS games to run on Windows 95: Not enough XMS handles

Raymond Chen

Of course I got it, right?

May 2, 2016
Post comments count 0
Post likes count 0

Does Mulan speak Chinese?

Raymond Chen

Not really.

May 2, 2016
Post comments count 0
Post likes count 1

Startup apps start up when I tell them

Raymond Chen

It's not really a useful performance metric.

Apr 29, 2016
Post comments count 0
Post likes count 1

What does QueryThreadCycleTime actually count?

Raymond Chen

Whatever the CPU wants.

Apr 28, 2016
Post comments count 0
Post likes count 1

Is there an API for redrawing a specific window from another application?

Raymond Chen

Once again, turns out to be the wrong question.

Apr 27, 2016
Post comments count 0
Post likes count 1

How does Explorer calculate “Size on disk”?

Raymond Chen

Very simplistic.