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

Jul 26, 2024
Post comments count
2
Post likes count
1
What can I do if IMlangConvertCharset is unable to convert from code page 28591 directly to UTF-8?

You can do the conversion in two steps using things you already have.

Jul 25, 2024
Post comments count
0
Post likes count
2
In my Visual Studio project, I set my Conformance mode to permissive, but it’s still not permissive

Digging into what the compiler sees.

Jul 24, 2024
Post comments count
7
Post likes count
0
API naming principle: If there is no direct object, then the direct object is the source object

If you don't know what it operates on or produces, then it operates on or produces itself.

Jul 23, 2024
Post comments count
11
Post likes count
3
Unquoted service paths: The new frontier in script kiddie security vulnerability reports

Usually not exploitable, but the script kiddies don't know that.

Jul 22, 2024
Post comments count
9
Post likes count
4
Organizing the five creation dispositions of the CreateFile
function

Six possibilities, but only five useful ones.

Jul 19, 2024
Post comments count
0
Post likes count
0
Creating an already-completed asynchronous activity in C++/WinRT, part 9

Cheating the delegates.

Jul 18, 2024
Post comments count
1
Post likes count
0
Creating an already-completed asynchronous activity in C++/WinRT, part 8

Generalizing the pattern.

Jul 17, 2024
Post comments count
2
Post likes count
0
Creating an already-completed asynchronous activity in C++/WinRT, part 7

Implementing the contract directly.

Jul 16, 2024
Post comments count
0
Post likes count
0
Creating an already-completed asynchronous activity in C++/WinRT, part 6

Let the conversion do the talking.