Closed daggerbot closed 4 years ago
With some winapi functions, it's ambiguous whether the call succeeded from the return value (e.g. IsWindowVisible, GetWindowLongPtrW, etc.). The only way to know for sure is to set the thread's error code to zero before the call and check it after.
IsWindowVisible
GetWindowLongPtrW
Great! Thanks :)
With some winapi functions, it's ambiguous whether the call succeeded from the return value (e.g.
IsWindowVisible
,GetWindowLongPtrW
, etc.). The only way to know for sure is to set the thread's error code to zero before the call and check it after.