The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jun 12, 2025
Post comments count 7
Post likes count 1

Why does Windows even have Interlocked functions when we have std::atomic?

Raymond Chen

Well, you have to start somewhere.

Jun 11, 2025
Post comments count 7
Post likes count 4

Removing the MAX_PATH restriction on paths applies only to paths

Raymond Chen

The individual file names still retain their existing limits.

Jun 10, 2025
Post comments count 6
Post likes count 5

Application compatibility for Windows 95 crashed a cash register

Raymond Chen

Exceeding all reasonable maximums.

Jun 9, 2025
Post comments count 2
Post likes count 2

Dubious security vulnerability: Tricking a program into running non-elevated

Raymond Chen

You can do anything, but still within the limits of your authority.

Jun 6, 2025
Post comments count 0
Post likes count 4

Why does C++ think my class is copy-constructible when it can’t be copy-constructed?

Raymond Chen

You said that you had a copy constructor, even though it can't be compiled.

Jun 5, 2025
Post comments count 11
Post likes count 2

Why do some Windows functions fail if I pass an unaligned Unicode string?

Raymond Chen

Well, if you don't align it, then you've already broken the rules.

Jun 4, 2025
Post comments count 2
Post likes count 3

Riffing on a typo in the name of the opera Turandot

Raymond Chen

On the dot.

Jun 4, 2025
Post comments count 0
Post likes count 1

How can I programmatically find the network path by which a folder has been shared?

Raymond Chen

There is no direct query. You'll have to infer it.

Jun 3, 2025
Post comments count 8
Post likes count 6

The symbolism of the magnifying glass is not universal

Raymond Chen

Just making things bigger?