Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
9
TMessagesProj/jni/voip/libtgvoip/os/windows/WindowsSpecific.cpp
Executable file
9
TMessagesProj/jni/voip/libtgvoip/os/windows/WindowsSpecific.cpp
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue