Mar 8, 2022 Post comments count11 Post likes count0 Optimizing code to darken a bitmap, part 2 Raymond Chen Exploiting parallel arithmetic.
Mar 7, 2022 Post comments count15 Post likes count0 Optimizing code to darken a bitmap, part 1 Raymond Chen Starting with the basics.
Mar 4, 2022 Post comments count0 Post likes count1 If the slim reader/writer lock (SRWLOCK) doesn’t remember who the shared lock owner is, does that mean it’s okay to acquire it recursively? Raymond Chen No, but you sort of knew that deep down.
Mar 3, 2022 Post comments count1 Post likes count0 Filtering out fake keyboards from the GetRawInputDeviceList function Raymond Chen Maybe look to see if it has any keys.
Mar 2, 2022 Post comments count1 Post likes count0 How can I detect whether the system has a keyboard attached? On the GetRawInputDeviceList function Raymond Chen You can enumerate the input devices and see if there's a keyboard.
Mar 1, 2022 Post comments count6 Post likes count0 How does Windows decide what instructions to provide for unlocking the PC? Raymond Chen It sniffs around at your hardware capabilities.