| 1 | #include "WindowsSpecific.h" |
| 2 | |
| 3 | using namespace tgvoip; |
| 4 | |
| 5 | std::string WindowsSpecific::GetErrorMessage(DWORD code){ |
| 6 | char buf[1024]={0}; |
| 7 | FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, code, MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), buf, sizeof(buf), NULL); |
| 8 | return std::string(buf); |
| 9 | } |