The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

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

Discussion of how to add UTF-16 support to a library that internally uses UTF-8

Raymond Chen

Convert it, but make sure it can convert back.

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

Customizing the window handle for item enumeration in IShellItem

Raymond Chen

It's on the site.

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

Why is the maximum number of TLS slots 1088? What a strange number.

Raymond Chen

It's a little less strange in binary.

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

Microspeak: To stand up

Raymond Chen

To get something working and available for use.

Jul 10, 2017
Post comments count 0
Post likes count 1

On the circular path from RAII to crazy-town back to RAII: Thoughts on emulating C#’s using in C++

Raymond Chen

A trip around the block.

Jul 7, 2017
Post comments count 0
Post likes count 1

How can I tell whether two paths reside on the same underlying volume, so I can know whether they can be hard-linked?

Raymond Chen

Don't try to guess. Just do it.

Jul 6, 2017
Post comments count 0
Post likes count 1

Debugging tip: Use .frame /r to recover nonvolatile registers from the stack frame

Raymond Chen

Saving you the trouble of reconstructing it manually.

Jul 5, 2017
Post comments count 0
Post likes count 2

How fair are SRW locks, particularly when there are both readers and writers?

Raymond Chen

Not fair! As with the other Windows synchronization objects.

Jul 4, 2017
Post comments count 0
Post likes count 0

Urban and suburban camouflage

Raymond Chen

Hey, what's that in my backyard?