If you’re going to wrap a Windows Runtime event, you may as well let the wrapped event source manage the token December 8, 2022 Dec 8, 2022 12/8/22 Raymond Chen It keeps the original object in control.
Reminder: If you intend to use a C++/WinRT namespace, you must include that namespace’s header file December 7, 2022 Dec 7, 2022 12/7/22 Raymond Chen Various errors that can be traced back to breaking that one rule.
Trouble connecting to Web sites and services because of certificate errors? Check if you’re being held captive December 6, 2022 Dec 6, 2022 12/6/22 Raymond Chen There's a man in the middle.
Instead of a C++ template parlor trick, why not just add support based on whether the header file has already been included? December 5, 2022 Dec 5, 2022 12/5/22 Raymond Chen Header file inclusion order dependencies.
C++ template parlor tricks: Using a type before it is defined December 2, 2022 Dec 2, 2022 12/2/22 Raymond Chen You can talk about hypothetical things, hoping that a real thing shows up later.
Not even trying to cross an airtight hatchway: Calling a function in your own process by synthesizing a function pointer December 1, 2022 Dec 1, 2022 12/1/22 Raymond Chen You can already attack yourself in far more interesting ways.
I used FILE_FLAG_SEQUENTIAL_SCAN but it didn’t seem to speed up my sequential scanning November 30, 2022 Nov 30, 2022 11/30/22 Raymond Chen It triggers prefetching, but your usage pattern may mean that prefetch doesn't mean much.
Dubious security vulnerability: Reading the files in the WindowsApps folder November 29, 2022 Nov 29, 2022 11/29/22 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 November 28, 2022 Nov 28, 2022 11/28/22 Raymond Chen The state of the art has moved forward slightly.
The case of the application that used thread local storage it never allocated November 28, 2022 Nov 28, 2022 11/28/22 Raymond Chen Of course it's there, isn't it? I mean, it's always been there.