I have a question about a function return value and a call to GetLastError(). I am posting this question because I am unsure of what happens in Windows to called functions that return other than void that have their return values ignored (what actually happens to the returned values?).
say for example SomeAPIFunc() is some Win32 API function that looks like this:
say I call this function, but ignore its return value:Code:
then I go to use GetLastError() to check if this function returned some error. will the call the GetLastError() still return the error code from this function, even though I am ignoring its return value?Code:
any help is greatly appreciated, thank you in advance! :D