The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
Oct 5, 2023
Post comments count
2
Post likes count
1
How can I get WideCharToMultiByte to convert strings encoded in UTF-16BE?
You first have to get it into a format the WideCharToMultiByte accepts.
Oct 4, 2023
Post comments count
3
Post likes count
2
On the confusing names for the Windows service SID types
Too much abbreviation.
Oct 3, 2023
Post comments count
1
Post likes count
6
A complaint about Links the Cat, the Office assistant
Do all cats do that?
Oct 2, 2023
Post comments count
0
Post likes count
1
How do I manually update a remote tracking branch, say, to undo a fetch?
Updating refs to point to whatever you like.
Sep 29, 2023
Post comments count
0
Post likes count
1
Template meta-programming: Avoiding saying a type before it is complete
Deferring use until after the class is defined.
Sep 28, 2023
Post comments count
2
Post likes count
2
C++/WinRT gotcha: get_strong() will produce a broken strong reference if destruction has already begun
A strong reference to nothing.
Sep 27, 2023
Post comments count
4
Post likes count
3
The dangers of releasing the last strong reference from within its own callback
Deadlocking with yourself.
Sep 26, 2023
Post comments count
8
Post likes count
6
Why is kernel32.dll running in user mode and not kernel mode, like its name implies?
It's just a name, and it comes from the days before user-mode/kernel-mode separation.
Sep 25, 2023
Post comments count
1
Post likes count
3
GetQueueStatus and the queue state
There's stuff going on that's hiding behind the innocuous-looking name.