| std::string WindowsSpecific::GetErrorMessage(DWORD code) |
| 6 | { |
| 7 | char buf[1024] = {0}; |
| 8 | FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, code, MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), buf, sizeof(buf), nullptr); |
| 9 | return std::string(buf); |
| 10 | } |