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

From: "Magnus Naeslund\(f\)" <mag(at)fbab(dot)net>
To: "Mikhail Terekhov" <terekhov(at)emc(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Re: [HACKERS] Re: WIN32 errno patch
Date: 2001-08-18 13:53:40
Message-ID: 00f901c127ed$2fa92070$020a0a0a@totalmef
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers pgsql-patches

From: "Mikhail Terekhov" <terekhov(at)emc(dot)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
>

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Naeslund(f) 2001-08-18 14:15:31 Re: Re: [HACKERS] Re: WIN32 errno patch
Previous Message Hiroshi Inoue 2001-08-18 04:30:47 pgsql/src/interfaces/odbc bind.c columninfo.c ...

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Naeslund(f) 2001-08-18 14:15:31 Re: Re: [HACKERS] Re: WIN32 errno patch
Previous Message Tatsuo Ishii 2001-08-18 11:14:25 Re: encoding names

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Naeslund(f) 2001-08-18 14:15:31 Re: Re: [HACKERS] Re: WIN32 errno patch
Previous Message Liam Stewart 2001-08-18 13:17:55 Re: DatabaseMetaData patch