The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Dubious security vulnerability: Reading the files in the WindowsApps folder
Nov 29, 2022
Post comments count 2
Post likes count 0

Dubious security vulnerability: Reading the files in the WindowsApps folder

Raymond Chen
Raymond Chen

You already had access to those files, by virtue of the fact that they ran in the first place.

What kind of caller diagnostic information can I get from exceptions thrown by C++/WinRT and wil?, C++20 edition
Nov 28, 2022
Post comments count 0
Post likes count 0

What kind of caller diagnostic information can I get from exceptions thrown by C++/WinRT and wil?, C++20 edition

Raymond Chen
Raymond Chen

The state of the art has moved forward slightly.

The case of the application that used thread local storage it never allocated
Nov 28, 2022
Post comments count 8
Post likes count 2

The case of the application that used thread local storage it never allocated

Raymond Chen
Raymond Chen

Of course it's there, isn't it? I mean, it's always been there.

How do I pass a raw pointer to a Windows Runtime function?
Nov 25, 2022
Post comments count 2
Post likes count 1

How do I pass a raw pointer to a Windows Runtime function?

Raymond Chen
Raymond Chen

Raw pointers don't exist in the Windows Runtime, so you'll have to re-express it in terms of something that does.

How does JavaScript represent output parameters in the Windows Runtime?
Nov 24, 2022
Post comments count 12
Post likes count 0

How does JavaScript represent output parameters in the Windows Runtime?

Raymond Chen
Raymond Chen

It has to fake it.

Sometimes perfect forwarding can be too perfect: Lazy conversion is lazy
Nov 23, 2022
Post comments count 4
Post likes count 0

Sometimes perfect forwarding can be too perfect: Lazy conversion is lazy

Raymond Chen
Raymond Chen

Lazy conversion is too lazy.

Microspeak: Breaking into jail
Nov 22, 2022
Post comments count 2
Post likes count 0

Microspeak: Breaking into jail

Raymond Chen
Raymond Chen

Just asking for trouble.

What kind of caller diagnostic information can I get from exceptions thrown by C++/WinRT and wil?
Nov 21, 2022
Post comments count 0
Post likes count 1

What kind of caller diagnostic information can I get from exceptions thrown by C++/WinRT and wil?

Raymond Chen
Raymond Chen

A survey of the current state of the art.

On Windows Runtime asynchronous operations with critical progress reports
Nov 18, 2022
Post comments count 0
Post likes count 1

On Windows Runtime asynchronous operations with critical progress reports

Raymond Chen
Raymond Chen

Make the caller provide the progress handler up front.