The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts

Oct 4, 2024
Post comments count
0
Post likes count
2
How does the linker decide whether to call WinMain
or wWinMain
?

If you don't tell it, it will try to figure it out.

Oct 3, 2024
Post comments count
8
Post likes count
5
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.

Oct 2, 2024
Post comments count
0
Post likes count
2
A function for creating an absolute security descriptor from a self-relative one

Just wrap it up.

Oct 1, 2024
Post comments count
5
Post likes count
4
Misunderstanding the “Prevent access to registry editing tools” policy

It prevents access to the tools, but not to the registry itself.

Sep 30, 2024
Post comments count
3
Post likes count
0
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?

Sep 27, 2024
Post comments count
3
Post likes count
5
The case of the crash when destructing a std::map

Who is corrupting the map?

Sep 26, 2024
Post comments count
3
Post likes count
2
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.

Sep 25, 2024
Post comments count
1
Post likes count
2
Another example of the Windows Runtime interop pattern: Using the UserConsentVerifier from a Win32 program

Following the standard pattern.

Sep 24, 2024
Post comments count
3
Post likes count
1
The UserConsentVerifier confirms that the user is there, but it doesn’t protect any data

Is that really you?