Re: Re: [HACKERS] Re: WIN32 errno patch

Поиск
Список
Период
Сортировка
От Magnus Naeslund\(f\)
Тема Re: Re: [HACKERS] Re: WIN32 errno patch
Дата
Msg-id 00f901c127ed$2fa92070$020a0a0a@totalmef
обсуждение исходный текст
Ответ на Re: Re: [HACKERS] Re: WIN32 errno patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
From: "Mikhail Terekhov" <terekhov@emc.com>
[snip]
> On my system (NT4 sp.6, VC6.0) the FormatMessage function always
> returns 0 for errno in the [10000 - 10100] range (winsock errors).
> That's why i've wrote that this function knows nothing about
> sockets errors. Using this function looks very impressive but the
> net result is null. If Magnus could get some meaningfull messages
> for winsock errors from FormatMessage I'd be glad to know what is
> missing from my setup.
>

You can load the "netmsg.dll" and get the messages from that hmodule.
That should probably be done and then fallback to plain FormatMessage
without hmodule parameter.
Do you have an netsmg.dll on nt4 (i think so)?
On win2k it's not needed, anyhoo, thats what i'm running.

Magnus

> Regards,
> Mikhail Terekhov
>



В списке pgsql-patches по дате отправления:

Предыдущее
От: Liam Stewart
Дата:
Сообщение: Re: DatabaseMetaData patch
Следующее
От: "Magnus Naeslund\(f\)"
Дата:
Сообщение: Re: Re: [HACKERS] Re: WIN32 errno patch