mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-01-23 16:56:35 +01:00
9 lines
No EOL
296 B
C++
Executable file
9 lines
No EOL
296 B
C++
Executable file
#include "WindowsSpecific.h"
|
|
|
|
using namespace tgvoip;
|
|
|
|
std::string WindowsSpecific::GetErrorMessage(DWORD code){
|
|
char buf[1024]={0};
|
|
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, code, MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), buf, sizeof(buf), NULL);
|
|
return std::string(buf);
|
|
} |