Get system error message using FormatMessageW on Windows and test ThrowSystemError.