This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/5] Link against libdnsapi to avoid undefined reference


On Mar 21 16:19, Peter Foley wrote:
> On Mon, Mar 21, 2016 at 3:52 PM, Corinna Vinschen
> <corinna-cygwin@cygwin.com> wrote:
> > While you're at it, ideally we make ourselves independent of the MingW
> > header version and use DnsFree directly, replacing DnsRecordListFree
> > in autoload.cc and libc/minires-os-if.c, no?
> 
> Hmm, it isn't immediately obvious as to the meaning of the 2nd (n)
> parameter to LoadDLLfunc()
> How would I go about finding the correct value for the DnsFree function?
> Function documentation is at
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms682011(v=vs.85).aspx

Number of arguments multiplied by 4.  That's just for the 32 bit
WINAPI.  LoadDLLfunc (DnsFree, 8, dnsapi) should do it.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]