The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Apr 21, 2017
Post comments count 0
Post likes count 1

Application crash reported as security vulnerability, but you never crossed the airtight hatchway

Raymond Chen

A crash is not a priori a security vulnerability.

Apr 20, 2017
Post comments count 0
Post likes count 1

On generating sentinel pointer values in Windows

Raymond Chen

That's not a pointer. <B>This</B> is a pointer.

Apr 19, 2017
Post comments count 0
Post likes count 1

Under what conditions could a commit of reserved memory fail?

Raymond Chen

Usually because you are out of memory, but really it's when you're out of commit.

Apr 18, 2017
Post comments count 0
Post likes count 2

That time a customer reported an error in the map used by Flight Simulator

Raymond Chen

But whose map is right?

Apr 17, 2017
Post comments count 0
Post likes count 1

Why does my __FILE__ macro produce an invalid address, which mysteriously becomes valid a few moments later?

Raymond Chen

It's not there until somebody demands it.

Apr 14, 2017
Post comments count 0
Post likes count 1

How can I atomically leave a critical section and delete it?

Raymond Chen

Even if you could, it wouldn't help you.

Apr 13, 2017
Post comments count 0
Post likes count 1

Can memcpy go into an infinite loop? Why is it being blamed for a busy hang?

Raymond Chen

Look at the bigger picture.

Apr 12, 2017
Post comments count 0
Post likes count 1

How do I get the current directory for a non-current drive?

Raymond Chen

GetFullPathName will tell you.

Apr 11, 2017
Post comments count 0
Post likes count 1

The Windows 8 close gestures, a retrospective

Raymond Chen

Top to bottom.