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.
How do I pass a raw pointer to a Windows Runtime function? November 25, 2022 Nov 25, 2022 11/25/22 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? November 24, 2022 Nov 24, 2022 11/24/22 Raymond Chen It has to fake it.
Sometimes perfect forwarding can be too perfect: Lazy conversion is lazy November 23, 2022 Nov 23, 2022 11/23/22 Raymond Chen Lazy conversion is too lazy.