CommonFuncs: Add GetWin32ErrorString().

This commit is contained in:
Admiral H. Curtiss 2023-07-28 08:10:01 +02:00 committed by Nayla Hanegan
commit 14a5aefc27
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D
2 changed files with 10 additions and 1 deletions

View file

@ -53,6 +53,9 @@ std::string LastStrerrorString();
// This function might change the error code.
std::string GetLastErrorString();
// Like GetLastErrorString() but if you have already queried the error code.
std::string GetWin32ErrorString(unsigned long error_code);
// Obtains a full path to the specified module.
std::optional<std::wstring> GetModuleName(void* hInstance);
#endif