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

Jan 30, 2024
Post comments count
1
Post likes count
0
Smoothing over the differences (and defects) in the various implementations of IMemoryBuffer

Stick to the part that nobody messes up.

Jan 29, 2024
Post comments count
0
Post likes count
1
A comparison of various implementations of the Windows Runtime IMemoryBuffer

Every unhappy class is unhappy in its own way.

Jan 26, 2024
Post comments count
0
Post likes count
1
How can I expose a pre-existing block of memory as a Windows Runtime object without copying the data?

Assembling all the pieces.

Jan 25, 2024
Post comments count
8
Post likes count
0
How can I give away a COM reference just before my object destructs?

You have to do it before committing to destruction.

Jan 24, 2024
Post comments count
2
Post likes count
1
The dangerous implementations of the IMemoryBufferReference.Closed
event

Mistakenly handing out COM references that don't work.

Jan 23, 2024
Post comments count
1
Post likes count
1
The useless IMemoryBufferReference.Closed
event

It tells you that you have already lost.

Jan 22, 2024
Post comments count
0
Post likes count
2
Accessing a block of memory represented by a Windows Runtime IMemoryBuffer

Through the currency known as an IMemoryBufferReference.

Jan 19, 2024
Post comments count
2
Post likes count
0
The case of the fail-fast trying to log a caught exception

What is being thrown and why can't we log it?

Jan 18, 2024
Post comments count
0
Post likes count
1
Implementing two-phase initialization with ATL

ATL looks like it supports two-phase initialization, but it doesn't.