The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Feb 1, 2024
Post comments count 7
Post likes count 2

Using virtual memory placeholders to allocate contiguous address space for multiple purposes

Raymond Chen

Can you hold this for a second?

Jan 31, 2024
Post comments count 10
Post likes count 2

How can I add an environment variable to a process launched via Shell­Execute­Ex or IContext­Menu?

Raymond Chen

Hooking into the way the Windows shell launches processes.

Jan 30, 2024
Post comments count 1
Post likes count 1

Smoothing over the differences (and defects) in the various implementations of IMemory­Buffer

Raymond Chen

Stick to the part that nobody messes up.

Jan 29, 2024
Post comments count 0
Post likes count 2

A comparison of various implementations of the Windows Runtime IMemory­Buffer

Raymond Chen

Every unhappy class is unhappy in its own way.

Jan 26, 2024
Post comments count 0
Post likes count 2

How can I expose a pre-existing block of memory as a Windows Runtime object without copying the data?

Raymond Chen

Assembling all the pieces.

Jan 25, 2024
Post comments count 8
Post likes count 1

How can I give away a COM reference just before my object destructs?

Raymond Chen

You have to do it before committing to destruction.

Jan 24, 2024
Post comments count 2
Post likes count 2

The dangerous implementations of the IMemory­Buffer­Reference.Closed event

Raymond Chen

Mistakenly handing out COM references that don't work.

Jan 23, 2024
Post comments count 1
Post likes count 2

The useless IMemory­Buffer­Reference.Closed event

Raymond Chen

It tells you that you have already lost.

Jan 22, 2024
Post comments count 0
Post likes count 3

Accessing a block of memory represented by a Windows Runtime IMemoryBuffer

Raymond Chen

Through the currency known as an IMemoryBufferReference.