mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/libtgvoip git-subtree-mainline: d153fe0f21174c4d6e1c3602e852e7a0e53051f0 git-subtree-split: dcbbfd9ec40ee8702852a768d75362142becc727
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);
|
|
} |