The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Reconciling yucky boys and gross kissing with the occasional dance
Oct 4, 2017
Post comments count 0
Post likes count 0

Reconciling yucky boys and gross kissing with the occasional dance

Raymond Chen
Raymond Chen

Just friends.

The Resource Compiler’s preprocessor is not the same as the C preprocessor
Oct 4, 2017
Post comments count 0
Post likes count 1

The Resource Compiler’s preprocessor is not the same as the C preprocessor

Raymond Chen
Raymond Chen

It's a very limited subset.

Alas, Microsoft Building 109 Conference Room A is no more
Oct 3, 2017
Post comments count 0
Post likes count 0

Alas, Microsoft Building 109 Conference Room A is no more

Raymond Chen
Raymond Chen

Another code word bites the dust.

How can I detect that my window is on the current virtual desktop?
Oct 2, 2017
Post comments count 0
Post likes count 0

How can I detect that my window is on the current virtual desktop?

Raymond Chen
Raymond Chen

And what are the recommended policies for using virtual desktops anyway?

Why does my thread handle suddenly go bad? All I did was wait on it!
Sep 29, 2017
Post comments count 0
Post likes count 0

Why does my thread handle suddenly go bad? All I did was wait on it!

Raymond Chen
Raymond Chen

The scary world of _beginthread.

CancelIoEx can cancel synchronous I/O, which is kind of nice
Sep 28, 2017
Post comments count 0
Post likes count 0

CancelIoEx can cancel synchronous I/O, which is kind of nice

Raymond Chen
Raymond Chen

Get me out of there.

How to check if a pointer is in a range of memory
Sep 27, 2017
Post comments count 0
Post likes count 1

How to check if a pointer is in a range of memory

Raymond Chen
Raymond Chen

Thanks to the C language standard, it's trickier than it seems.

Who implemented the Windows NT blue screen of death?
Sep 26, 2017
Post comments count 0
Post likes count 0

Who implemented the Windows NT blue screen of death?

Raymond Chen
Raymond Chen

My colleague John Vert.

What happens if I wake a condition variable when nobody is waiting for it? Is the wake saved for the next thread that waits?
Sep 25, 2017
Post comments count 0
Post likes count 1

What happens if I wake a condition variable when nobody is waiting for it? Is the wake saved for the next thread that waits?

Raymond Chen
Raymond Chen

It shouldn't matter.