Oct 31, 2022 0 2 How can I test my geolocation code on a system without a GPS? Raymond Chen You can use the Windows Device Portal to create a synthetic GPS.
Oct 28, 2022 4 3 Setting properties in C++/WinRT is done by a function call, but you need to call the function the right way Raymond Chen The new value is the function parameter.
Oct 27, 2022 3 3 Why am I seeing two WRITE requests at the same offset from a single call to WriteFile? Raymond Chen It started as one write, but turned into a lot of other things.
Oct 26, 2022 3 2 What can or should I do with the cursor handle returned by SetCursor? Raymond Chen You can put it back, but sometimes you need to make sure you do it before anybody else can see the change.
Oct 25, 2022 8 4 Why are many Windows user interface elements positioned at multiples of 4 or 8 pixels? Raymond Chen It depends on whose pixels you're talking about.
Oct 24, 2022 0 1 Why can’t I programmatically inspect the check boxes in the Security property sheet any more? Raymond Chen Abusing the ISecurityInformation::PropertySheetPageCallback method.
Oct 21, 2022 1 2 What happens if my C++ exception handler itself raises an exception? Raymond Chen And comparing to the handling of structured exceptions.
Oct 20, 2022 1 3 Is it true that raising a structured exception from a structured exception handler terminates the process? Raymond Chen Untangling the myth.
Oct 19, 2022 1 3 Why is there a make_unique? Why not just overload the unique_ptr constructor? Raymond Chen You'll have to resolve the ambiguity, so you're still typing a lot.
Oct 18, 2022 10 6 Why is there a passwords.txt file on my system that’s filled with somebody else’s passwords? Raymond Chen It's part of an open-source password strength package.