The Old New Thing (original) (raw)

Latest posts

Why does Windows even have <CODE>Interlocked</CODE> functions when we have <CODE>std::atomic</CODE>?

Jun 12, 2025

Post comments count 0

Post likes count 0

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

Raymond Chen

Raymond Chen

Well, you have to start somewhere.

Removing the <CODE>MAX_PATH</CODE> restriction on paths applies only to paths

Jun 11, 2025

Post comments count 6

Post likes count 2

Removing the MAX_PATH restriction on paths applies only to paths

Raymond Chen

Raymond Chen

The individual file names still retain their existing limits.

Application compatibility for Windows 95 crashed a cash register

Jun 10, 2025

Post comments count 6

Post likes count 3

Application compatibility for Windows 95 crashed a cash register

Raymond Chen

Raymond Chen

Exceeding all reasonable maximums.

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

Jun 9, 2025

Post comments count 2

Post likes count 1

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

Raymond Chen

Raymond Chen

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?

Jun 6, 2025

Post comments count 0

Post likes count 2

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

Raymond Chen

Raymond Chen

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?

Jun 5, 2025

Post comments count 11

Post likes count 1

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

Raymond Chen

Raymond Chen

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

Riffing on a typo in the name of the opera <I>Turandot</I>

Jun 4, 2025

Post comments count 2

Post likes count 1

Riffing on a typo in the name of the opera Turandot

Raymond Chen

Raymond Chen

On the dot.

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

Jun 4, 2025

Post comments count 0

Post likes count 0

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

Raymond Chen

Raymond Chen

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

The symbolism of the magnifying glass is not universal

Jun 3, 2025

Post comments count 8

Post likes count 4

The symbolism of the magnifying glass is not universal

Raymond Chen

Raymond Chen

Just making things bigger?

Load more posts