Feb 29, 2024 Post comments count7 Post likes count4 If a parameter isn’t used, what should I pass? Raymond Chen It doesn't matter what you pass, but if you have to ask, then just pass zero.
Feb 28, 2024 Post comments count16 Post likes count1 On the whole idea of giving away a reference to yourself at destruction Raymond Chen Hey, at least it's possible.
Feb 27, 2024 Post comments count15 Post likes count1 Mitigating attacks based on knowing the length of a Windows Hello PIN Raymond Chen Balancing convenience against security, and how you can tune the knobs toward more security.
Feb 26, 2024 Post comments count21 Post likes count1 A C# LINQ one-liner to check if exactly one of a set of conditions is met Raymond Chen Maybe not the most efficient, but it's easy to write.
Feb 23, 2024 Post comments count4 Post likes count3 Gotcha: Be careful how you shut down your dispatcher queues Raymond Chen The dispatcher queue thread isn't useful after it has shut down, so don't try anything.
Feb 22, 2024 Post comments count1 Post likes count0 Gotcha: Don’t forget to shut down your dispatcher queues Raymond Chen Keep that dispatcher queue controller around, or you'll never be able to clean up.
Feb 21, 2024 Post comments count1 Post likes count0 Once your object reaches final_release, you are committed to destructing it (eventually) Raymond Chen Don't try to resurrect it.
Feb 20, 2024 Post comments count3 Post likes count0 Microspeak: Closing out, duping out Raymond Chen Making work items no longer appear on a query.
Feb 19, 2024 Post comments count9 Post likes count4 Why can’t I trigger a manual blue screen crash by injecting the magic key sequence? Raymond Chen It has to come from the physical keyboard, because that's the code that detects the magic key sequence.
Feb 16, 2024 Post comments count17 Post likes count7 If you’re just going to sit there doing nothing, at least do nothing correctly Raymond Chen How to be inert.