Learn about the new site design
The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
Oct 3, 2024
How can I detect whether the user is running as an elevated administrator (as opposed to a natural administrator)?
You can ask for the elevation type.
3
2
Oct 2, 2024
A function for creating an absolute security descriptor from a self-relative one
Just wrap it up.
0
1
Oct 1, 2024
Misunderstanding the “Prevent access to registry editing tools” policy
It prevents access to the tools, but not to the registry itself.
5
4
Sep 30, 2024
Pulling a single item from a C++ parameter pack by its index, remarks
Why such a complicated way to pull the type from the pack?
3
0
Sep 27, 2024
The case of the crash when destructing a std::map
Who is corrupting the map?
3
4
Sep 26, 2024
If you’re going to specify the LVS_SORTASCENDING
or LVS_SORTDESCENDING
style, you had better be telling the truth
Because the listview control uses it to optimize searching.
3
1
Sep 25, 2024
Another example of the Windows Runtime interop pattern: Using the UserConsentVerifier from a Win32 program
Following the standard pattern.
1
1
Sep 24, 2024
The UserConsentVerifier confirms that the user is there, but it doesn’t protect any data
Is that really you?
2
1
Sep 23, 2024
Going beyond the empty set: Embracing the power of other empty things
Just because there's nothing in it doesn't mean it's not valid.
6
1