getErrorStr() for Windows platforms