CommonFuncs: Add GetWin32ErrorString().

This commit is contained in:
Admiral H. Curtiss
2023-07-28 08:10:01 +02:00
parent 17fa9dfc4e
commit cd923718c3
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