DnsQuery crashing on successful NAPTR queries

We are porting an application using DnsQuery from XP to Vista. Every single successful NAPTR query crashes inside dnsapi.lib under Vista (but not under XP). However, unsuccesful NAPTR queries function normally (i.e. do not crash). We tried to use directly DnsQuery_A, DnsQuery_W and DnsQuery_UTF8 and did get more lucky.

Would anyone have an idea how to resolve this?

Thanks

[393 byte] By [GuyLepine] at [2008-2-27]
# 1
Hi all,
sorry for the misleading in my last post. In fact, we did NOT get more lucky when using DnsQuery_An DnsQuery_W and DnsQuery_UTF8
GuyLepine at 2007-9-5 > top of Msdn Tech,Windows Networking Development,Winsock Kernel (WSK)...
# 2
This forum is dedicated to Winsock questions. Please see http://www.microsoft.com/community for a list of newsgroups / forums that may be better suited for your question
MikeFlasko at 2007-9-5 > top of Msdn Tech,Windows Networking Development,Winsock Kernel (WSK)...