The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts

Thread pool threads are like preschool: Leave things the way you found them

Your mother always told you to clean up behind yourself.

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

Well, you have to start somewhere.

Removing the MAX_PATH
restriction on paths applies only to paths

The individual file names still retain their existing limits.

Application compatibility for Windows 95 crashed a cash register

Exceeding all reasonable maximums.

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

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

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

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

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

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

Riffing on a typo in the name of the opera Turandot

On the dot.

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

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