#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 277 of file win32.c.
292 LOAD_LIBRARY_AS_DATAFILE);
298 flags = FORMAT_MESSAGE_FROM_SYSTEM
299 | FORMAT_MESSAGE_IGNORE_INSERTS
300 | (
dlls[
i].
handle ? FORMAT_MESSAGE_FROM_HMODULE : 0);
302 success = 0 != FormatMessage(flags,
304 MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
305 strerrbuf, buflen - 64,
313 strerrbuf[buflen - 1] =
'\0';
314 offs = strlen(strerrbuf);
315 if (offs > (
int) buflen - 64)
static int LookupWSErrorMessage(DWORD err, char *dest)
static struct MessageDLL dlls[]
References dlls, DLLS_SIZE, err(), 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