The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Aug 13, 2025
Post comments count 0
Post likes count 2

Thoughts on creating a tracking pointer class, part 3: Using a std::vector

Raymond Chen

Tracking your trackers with a vector.

Aug 12, 2025
Post comments count 3
Post likes count 2

Thoughts on creating a tracking pointer class, part 2: Using a std::list

Raymond Chen

Tracking your trackers with a <CODE>std::list</CODE>.

Aug 11, 2025
Post comments count 1
Post likes count 3

Thoughts on creating a tracking pointer class, part 1: Concept art

Raymond Chen

Following an object as it moves.

Aug 8, 2025
Post comments count 7
Post likes count 4

Under what conditions could a Read­File or Write­File fail to transfer all of the bytes, and how do I detect that?

Raymond Chen

If there is not enough data to read, or not room to write.

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

How can I detect that Windows is running in S-Mode?

Raymond Chen

Check the code integrity policy.

Aug 6, 2025
Post comments count 9
Post likes count 5

How do I disable pieces of the property sheet for a service in the Services MMC snap-in?

Raymond Chen

There's no secret setting. It's all based on access control.

Aug 5, 2025
Post comments count 24
Post likes count 5

Why are Windows semiannual updates named H1 and H2?

Raymond Chen

To address an unconscious bias.

Aug 4, 2025
Post comments count 24
Post likes count 3

How can I read more than 4GB of data from a file in a single call to Read­File?

Raymond Chen

You can't, but you can try to fake it.

Aug 1, 2025
Post comments count 2
Post likes count 1

Two related questions about keeping track of PIDs of IPC clients

Raymond Chen

Since you're doing IPC, you may as well let IPC do the work for you.