Returns the most recent Win32 Error and clears the error code.
- Return values
-
When an error occurs, an internal error value is set. Calling this method will return the stored Win32 error and reset the stored value. Calling SM_GetLastWin32Error() after an error has occurred is not required. For more information on Win32 errors, please see the Win32 API documentation.