|
From: Cesc <ces...@gm...> - 2006-03-14 10:53:01
|
On 3/14/06, Tor Lillqvist <tm...@ik...> wrote: > Cesc writes: > > Yes, and in this page says that client support is for xp, 2k, nt, > > 98 and 95... > > This is probably because the Microsoft-supplied headers in the > Platform SDK contain code for a wrapper implementation that works on > older OSes, too. getaddrinfo is present in ws2_32.dll only on XP and > later. (There is nothing similar in the corresponding mingw header.) > > But anyway, it might be that what you really are looking for is > DnsQuery(). > > --tml > The DnsApi is indeed for win xp and 2k only ... I will try first with getaddrinfo ... it seems good enough. The second param you can specify either a port or service name for the hostname you are trying to resolv ... this is exactly what i want. Probably the DnsApi allows for far more advanced stuff ... but maybe is not needed. Thanks! Cesc |