xtao/nagram
Explore
Search
Docs
Sign in
Get started
N
xtao
/
Nagram
Public
Sign in to fork
Clone
Code
Issues
Change requests
Actions
Discussions
Commits
Branches
Releases
Search
Contributors
Compare
Code
Issues
Change requests
Actions
Discussions
Commits
Branches
Releases
Search
Contributors
Compare
dev2
Nagram
/
TMessagesProj
/
jni
/
voip
/
libtgvoip
/
os
/
windows
/
WindowsSpecific.cpp
Code
Blame
9 lines · 296 B
text/plain; charset=utf-8
Raw
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
}