Re: Re: [HACKERS] Re: WIN32 errno patch - Mailing list pgsql-patches

From Magnus Naeslund\(f\)
Subject Re: Re: [HACKERS] Re: WIN32 errno patch
Date
Msg-id 00f901c127ed$2fa92070$020a0a0a@totalmef
Whole thread Raw
In response to Re: Re: [HACKERS] Re: WIN32 errno patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Liam Stewart
Date:
Subject: Re: DatabaseMetaData patch
Next
From: "Magnus Naeslund\(f\)"
Date:
Subject: Re: Re: [HACKERS] Re: WIN32 errno patch