A C# LINQ one-liner to check if exactly one of a set of conditions is met February 26, 2024 Feb 26, 2024 02/26/24 Raymond Chen Maybe not the most efficient, but it's easy to write.
Gotcha: Be careful how you shut down your dispatcher queues February 23, 2024 Feb 23, 2024 02/23/24 Raymond Chen The dispatcher queue thread isn't useful after it has shut down, so don't try anything.
Gotcha: Don’t forget to shut down your dispatcher queues February 22, 2024 Feb 22, 2024 02/22/24 Raymond Chen Keep that dispatcher queue controller around, or you'll never be able to clean up.
Once your object reaches final_release, you are committed to destructing it (eventually) February 21, 2024 Feb 21, 2024 02/21/24 Raymond Chen Don't try to resurrect it.
Microspeak: Closing out, duping out February 20, 2024 Feb 20, 2024 02/20/24 Raymond Chen Making work items no longer appear on a query.
Why can’t I trigger a manual blue screen crash by injecting the magic key sequence? February 19, 2024 Feb 19, 2024 02/19/24 Raymond Chen It has to come from the physical keyboard, because that's the code that detects the magic key sequence.
If you’re just going to sit there doing nothing, at least do nothing correctly February 16, 2024 Feb 16, 2024 02/16/24 Raymond Chen How to be inert.
Registered command lines are just command lines, not a programming language February 15, 2024 Feb 15, 2024 02/15/24 Raymond Chen If you want a programming language, you know where to find one.
Functions that return the size of a required buffer generally return upper bounds, not tight bounds February 14, 2024 Feb 14, 2024 02/14/24 Raymond Chen An over-estimate is better than an under-estimate.
It rather involved being on the other side of this airtight hatchway: Attacking a domain administrator from the local administrator February 13, 2024 Feb 13, 2024 02/13/24 Raymond Chen If you pwn the machine, then you pwn everyone on the machine.