Apr 24, 2026 Post comments count3 Post likes count2 Defending against exceptions in a scope_exit RAII type Raymond Chen But maybe it's not worth it.
Apr 23, 2026 Post comments count12 Post likes count2 Another crash caused by uninstaller code injection into Explorer Raymond Chen Inadvertently destroying a staircase while standing on it.
Apr 22, 2026 Post comments count2 Post likes count3 Mapping the page tables into memory via the page tables Raymond Chen So-called "fractal page mapping".
Apr 20, 2026 Post comments count1 Post likes count3 How did code handle 24-bit-per-pixel formats when using video cards with bank-switched memory? Raymond Chen You still have to use aligned accesses, even though the pixels might not be aligned.
Apr 16, 2026 Post comments count9 Post likes count2 What’s up with window message 0x0091? We’re getting it with unexpected parameters Raymond Chen Trespassing on system messages.
Apr 15, 2026 Post comments count0 Post likes count2 Why is there a long delay between a thread exiting and the WaitForSingleObject returning? Raymond Chen Maybe it didn't really exit.
Apr 13, 2026 Post comments count8 Post likes count1 Finding a duplicated item in an array of N integers in the range 1 to N − 1 Raymond Chen Taking advantage of special characteristics of the array.
Apr 10, 2026 Post comments count3 Post likes count2 How do you add or remove a handle from an active WaitForMultipleObjects?, part 2 Raymond Chen Waiting for the waiting thread to acknowledge the change.
Apr 9, 2026 Post comments count4 Post likes count2 How do you add or remove a handle from an active WaitForMultipleObjects? Raymond Chen You can't, but you can cooperate with the other thread.
Apr 8, 2026 Post comments count4 Post likes count2 How do you add or remove a handle from an active MsgWaitForMultipleObjects? Raymond Chen You can't, but you can arrange for the waiter to do it for you.