The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jun 9, 2017
Post comments count 0
Post likes count 1

The case of the longjmp from nowhere trying to open a registry key

Raymond Chen

Close your eyes and jump.

Jun 8, 2017
Post comments count 0
Post likes count 1

What will GetLastError() return after a failed InitOnceExecuteOnce?

Raymond Chen

Whatever you tell it to.

Jun 7, 2017
Post comments count 0
Post likes count 1

On enabling NX and ASLR for a module after the fact

Raymond Chen

You can flip the bit, but you can't regenerate relocation information.

Jun 6, 2017
Post comments count 0
Post likes count 3

Microspeak: ROB and Office Hours

Raymond Chen

Rhythm of business.

Jun 5, 2017
Post comments count 0
Post likes count 1

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

Raymond Chen

There is no system registration. You'll have to roll one yourself.

Jun 2, 2017
Post comments count 0
Post likes count 2

How likely is it that a window will receive a WM_NULL message out of the blue?

Raymond Chen

Not entirely unlikely, let's put it that way.

Jun 1, 2017
Post comments count 0
Post likes count 3

Comparing WaitOnAddress with futexes (futexi? futexen?)

Raymond Chen

Two different ways of creating a synchronization object out of nothing.

May 31, 2017
Post comments count 0
Post likes count 1

Extending our critical section based on WaitOnAddress to support timeouts

Raymond Chen

Ooh, look, a new feature.

May 30, 2017
Post comments count 0
Post likes count 1

Why isn’t the original window order always preserved when you undo an Aero Shake?

Raymond Chen

Acts the same way as undoing a Minimize All, since that's basically what it is.