#include "postgres_fe.h"
#include "win32.h"
Go to the source code of this file.
◆ DLLS_SIZE
◆ libpq_gettext
#define libpq_gettext |
( |
|
x | ) |
(x) |
◆ NOCRYPT
◆ NOGDI
◆ VC_EXTRALEAN
◆ LookupWSErrorMessage()
static int LookupWSErrorMessage |
( |
DWORD |
err, |
|
|
char * |
dest |
|
) |
| |
|
static |
◆ winsock_strerror()
const char* winsock_strerror |
( |
int |
err, |
|
|
char * |
strerrbuf, |
|
|
size_t |
buflen |
|
) |
| |
Definition at line 281 of file win32.c.
296 LOAD_LIBRARY_AS_DATAFILE);
302 flags = FORMAT_MESSAGE_FROM_SYSTEM
303 | FORMAT_MESSAGE_IGNORE_INSERTS
304 | (
dlls[
i].
handle ? FORMAT_MESSAGE_FROM_HMODULE : 0);
306 success = 0 != FormatMessage(flags,
308 MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
309 strerrbuf, buflen - 64,
317 strerrbuf[buflen - 1] =
'\0';
318 offs = strlen(strerrbuf);
319 if (offs > (
int) buflen - 64)
321 sprintf(strerrbuf + offs,
" (0x%08X/%d)", err, err);
static int LookupWSErrorMessage(DWORD err, char *dest)
References dlls, DLLS_SIZE, MessageDLL::handle, i, libpq_gettext, MessageDLL::loaded, LookupWSErrorMessage(), sprintf, and success.
◆ dlls
Initial value:=
{
{
"netmsg.dll", 0, 0
},
{
"winsock.dll", 0, 0
},
{
"ws2_32.dll", 0, 0
},
{
"wsock32n.dll", 0, 0
},
{
"mswsock.dll", 0, 0
},
{
"ws2help.dll", 0, 0
},
{
"ws2thk.dll", 0, 0
},
{
0, 0, 1
}
}
Referenced by winsock_strerror().
◆ WSErrors