cpu_stats: fmt::win_error_to_string

This commit is contained in:
Megamouse 2022-03-16 20:44:47 +01:00
parent 7a1a4541c0
commit e58906cb4d
3 changed files with 6 additions and 16 deletions

View file

@ -10,8 +10,8 @@ namespace fmt
static std::string format(const CharT(&)[N], const Args&...);
#ifdef _WIN32
// Get a string for a windows error (DWORD)
std::string win_error_to_string(unsigned long error);
// Get a string for a windows error (DWORD). Optionally a module HANDLE can be passed.
std::string win_error_to_string(unsigned long error, void* module_handle = nullptr);
#endif
}