How does GetLastError() work ?
Does the last error remain in the GetLastError() fonction until a new error come
Yes
Or does the GetLastError() fonction is reset ?
No, unless you reset it with ResetLastError()
Usually , when calling a function, you can check the return value to see if there was an error or not. If there was an error call GetLastError()
From GetLastError():
"After the function call, the contents of _LastError are reset."
|
Does the last error remain in the GetLastError() fonction until a new error come
Or does the GetLastError() fonction is reset ?