The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
Dec 6, 2018
Post comments count
0
Post likes count
1
How is it that WriteProcessMemory succeeds in writing to read-only memory?
Because it tries really hard.
Dec 5, 2018
Post comments count
0
Post likes count
1
How can dereferencing the first character of a string take longer when the string is longer? I’m looking only at the first character, which should be constant time
There's a lot hiding in that <VAR>O</VAR>.
Dec 4, 2018
Post comments count
0
Post likes count
0
The plural of Nexus is Nexūs, in case you cared (which you almost certainly don’t)
Only for Latin nerds.
Dec 4, 2018
Post comments count
0
Post likes count
1
Why can’t I close windows directly from the Alt+Tab interface in Windows Vista?
Elevation and interruption.
Dec 3, 2018
Post comments count
0
Post likes count
1
Choosing error codes based on a really nice #define doesn’t necessarily lead to a readable message to the user
Device not ready? What device?
Nov 30, 2018
Post comments count
0
Post likes count
1
Why does Clipboard.SetData put extra junk in the clipboard data? And how can I get it to stop?
Strings and things, but you need the things.
Nov 29, 2018
Post comments count
0
Post likes count
1
Taking advantage of the ordering guarantees of the LINQ GroupBy method
Sorting and grouping in a particular way.
Nov 28, 2018
Post comments count
0
Post likes count
1
What happens if I mutate a string in a p/invoke?
It seems to work, for specific meanings of "seems".
Nov 27, 2018
Post comments count
0
Post likes count
1
Nifty trick: Combining constructor with collection initializer
Two great tastes that work great together.