The `GetLastError` function is part of Microsoft Windows and is part of an error-reporting mechanism used by many libraries.