🦜 The Old New Thing
@devblogs.microsoft.com.oldnewthing@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Your feed and you don't want it here? Just
e-mail the birb.
Why do you say that a COM STA thread must pump messages if I see sample code creating STA threads and not pumping messages?
https://devblogs.microsoft.com/oldnewthing/20260522-00/?p=112348
Published: May 22, 2026 14:00
You need to pump messages when idle, but maybe you are never idle.
The post Why do you say that a COM STA thread must pump messages if I see sample code creating STA threads and not pumping messages? appeared first on The Old New Thing.
How do I use Win32 structures from the Windows Runtime?
https://devblogs.microsoft.com/oldnewthing/20260521-00/?p=112345
Published: May 21, 2026 14:00
Trick question: You can't. But maybe you can fake it.
The post How do I use Win32 structures from the Windows Runtime? appeared first on The Old New Thing.
The classic TreeView control lets me sort by name or by lParam, but why not both?
https://devblogs.microsoft.com/oldnewthing/20260520-00/?p=112343
Published: May 20, 2026 14:00
You need to arrange to get one from the other.
The post The classic TreeView control lets me sort by name or by lParam, but why not both? appeared first on The Old New Thing.
What is the history of the ERROR_ARENA_TRASHED error code?
https://devblogs.microsoft.com/oldnewthing/20260519-00/?p=112339
Published: May 19, 2026 14:00
The storage control blocks were destroyed.
The post What is the history of the <CODE>ERROR_<WBR>ARENA_<WBR>TRASHED</CODE> error code? appeared first on The Old New Thing.
Just shows that nobody cares about debugging the parity flag any more
https://devblogs.microsoft.com/oldnewthing/20260518-00/?p=112334
Published: May 18, 2026 14:00
Reported incorrectly since the day it was written.
The post Just shows that nobody cares about debugging the parity flag any more appeared first on The Old New Thing.
The case of the CreateFileMapping that always reported ERROR_ALREADY_EXISTS
https://devblogs.microsoft.com/oldnewthing/20260515-00/?p=112327
Published: May 15, 2026 14:00
Maybe because it already exists?
The post The case of the <CODE>CreateFileMapping</CODE> that always reported <CODE>ERROR_<WBR>ALREADY_<WBR>EXISTS</CODE> appeared first on The Old New Thing.
A constant-space linear-time algorithm for deleting all but the 10 most recent files in a directory
https://devblogs.microsoft.com/oldnewthing/20260514-00/?p=112322
Published: May 14, 2026 14:00
Using data structures you already knew.
The post A constant-space linear-time algorithm for deleting all but the 10 most recent files in a directory appeared first on The Old New Thing.
The case of the hang when the user changed keyboard layouts
https://devblogs.microsoft.com/oldnewthing/20260513-00/?p=112318
Published: May 13, 2026 14:00
Keeping things moving.
The post The case of the hang when the user changed keyboard layouts appeared first on The Old New Thing.
Additional notes on controlling which handles are inherited by CreateProcess
https://devblogs.microsoft.com/oldnewthing/20260511-00/?p=112313
Published: May 11, 2026 14:00
Putting the handles in a private container.
The post Additional notes on controlling which handles are inherited by <CODE>CreateProcess</CODE> appeared first on The Old New Thing.
Developing more confidence when tracking renames via ReadDirectoryChangesW
https://devblogs.microsoft.com/oldnewthing/20260508-00/?p=112310
Published: May 8, 2026 14:00
You can track the file ID.
The post Developing more confidence when tracking renames via <CODE>ReadDirectoryChangesW</CODE> appeared first on The Old New Thing.
When you upgrade your resource strings to Unicode, don’t forget to specify the L prefix
https://devblogs.microsoft.com/oldnewthing/20260507-00/?p=112307
Published: May 7, 2026 14:00
Otherwise, it'll get mapped back down to the 8-bit code page.
The post When you upgrade your resource strings to Unicode, don’t forget to specify the L prefix appeared first on The Old New Thing.