mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-29 17:31:56 +00:00
git-subtree-dir: submodules/libtgvoip git-subtree-mainline:d153fe0f21git-subtree-split:dcbbfd9ec4
9 lines
296 B
C++
Executable File
9 lines
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);
|
|
} |