Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackerspgsql-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

pgsql-hackers by date

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

pgsql-committers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group