The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

The case of the unhandled exception in a brokered Windows Runtime component
Apr 19, 2023
Post comments count 2
Post likes count 0

The case of the unhandled exception in a brokered Windows Runtime component

Raymond Chen
Raymond Chen

Digging into the event dispatch code.

No, it is not a security vulnerability that there is no certificate of appreciation for reporting a bug
Apr 18, 2023
Post comments count 14
Post likes count 1

No, it is not a security vulnerability that there is no certificate of appreciation for reporting a bug

Raymond Chen
Raymond Chen

It wasn't even a bug report.

How can I find the invalid class when C++/WinRT tells me that the class may not be final?
Apr 17, 2023
Post comments count 3
Post likes count 1

How can I find the invalid class when C++/WinRT tells me that the class may not be final?

Raymond Chen
Raymond Chen

It's in the error details.

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 4: Handing it over
Apr 14, 2023
Post comments count 4
Post likes count 1

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 4: Handing it over

Raymond Chen
Raymond Chen

Just take the whole thing.

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 3: Filling the SoftwareBitmap directly
Apr 13, 2023
Post comments count 1
Post likes count 0

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 3: Filling the SoftwareBitmap directly

Raymond Chen
Raymond Chen

Avoiding the intermediate buffer.

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 2: Via a buffer
Apr 12, 2023
Post comments count 0
Post likes count 0

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 2: Via a buffer

Raymond Chen
Raymond Chen

Passing raw pixels across.

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 1: Via an encoded stream
Apr 11, 2023
Post comments count 0
Post likes count 0

How can I convert a WIC bitmap to a Windows Runtime SoftwareBitmap? part 1: Via an encoded stream

Raymond Chen
Raymond Chen

We'll start with the hard way, but it gets easier.

Why is there a large gap between some of the Windows system metrics indices?
Apr 10, 2023
Post comments count 1
Post likes count 1

Why is there a large gap between some of the Windows system metrics indices?

Raymond Chen
Raymond Chen

An artifact of the internal implementation.

The case of the PasswordVault.Add call that the customer thinks was hung
Apr 7, 2023
Post comments count 1
Post likes count 2

The case of the PasswordVault.Add call that the customer thinks was hung

Raymond Chen
Raymond Chen

But was it really hung? Or did it just look that way.