The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jul 6, 2018
Post comments count 0
Post likes count 2

The case of the very large memory blocks of the same size, mostly zero, but whose nonzero bytes follow a pattern

Raymond Chen

Some initial pattern recognition, followed by an ad-hoc tool.

Jul 5, 2018
Post comments count 0
Post likes count 1

How can I detect whether the user is logging off?

Raymond Chen

It's hidden as a strange sort of system metric.

Jul 4, 2018
Post comments count 0
Post likes count 1

The Windows Calculator no longer generates tiny errors when calculating the square root of a perfect square

Raymond Chen

Tweaking the algorithm.

Jul 3, 2018
Post comments count 0
Post likes count 1

Did you happen to lose something in the Amstel River? Say within the past 500 years?

Raymond Chen

Maybe you can find it here.

Jul 3, 2018
Post comments count 0
Post likes count 1

How can I determine why the System process is listening on port 80?

Raymond Chen

netsh can tell you.

Jul 2, 2018
Post comments count 0
Post likes count 1

Consider the environment: Do you want a receipt?

Raymond Chen

Actually, I don't really care whether you want one. The decision is foregone.

Jun 29, 2018
Post comments count 0
Post likes count 1

2018 mid-year link clearance

Raymond Chen

Reaching the halfway point.

Jun 28, 2018
Post comments count 0
Post likes count 1

How can I detect from the preprocessor what a macro’s definition is?

Raymond Chen

Evil preprocessor tricks.

Jun 27, 2018
Post comments count 0
Post likes count 1

Lock free many-producer/single-consumer patterns: A work queue of distinct events, order not important, follow-up question

Raymond Chen

We try to minimize spurious wake-ups, but eliminating them is probably not worth the effort.