Module: wine Branch: master Commit: 46626eebd58a844e3ac7e8e314c5780a8a50c3d2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=46626eebd58a844e3ac7e8e314...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Oct 30 19:22:50 2015 +0100
dnsapi: Added DnsQueryEx stub.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dnsapi/dnsapi.spec | 2 +- dlls/dnsapi/query.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/dlls/dnsapi/dnsapi.spec b/dlls/dnsapi/dnsapi.spec index 2fb6846..4f6f1c8 100644 --- a/dlls/dnsapi/dnsapi.spec +++ b/dlls/dnsapi/dnsapi.spec @@ -79,7 +79,7 @@ @ stub DnsNotifyResolver @ stdcall DnsQuery_A(str long long ptr ptr ptr) @ stdcall DnsQueryConfig(long long wstr ptr ptr ptr) -@ stub DnsQueryEx +@ stdcall DnsQueryEx(ptr ptr ptr) @ stdcall DnsQuery_UTF8(str long long ptr ptr ptr) @ stdcall DnsQuery_W(wstr long long ptr ptr ptr) @ stub DnsRecordBuild_UTF8 diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c index e05205b..a66db37 100644 --- a/dlls/dnsapi/query.c +++ b/dlls/dnsapi/query.c @@ -641,6 +641,27 @@ exit:
#endif /* HAVE_RESOLV */
+static const char *debugstr_query_request(const DNS_QUERY_REQUEST *req) +{ + if (!req) + return "(null)"; + + return wine_dbg_sprintf("{%d %s %s %x%08x %p %d %p %p}", req->Version, + debugstr_w(req->QueryName), dns_type_to_str(req->QueryType), + (UINT32)(req->QueryOptions>>32u), (UINT32)req->QueryOptions, req->pDnsServerList, + req->InterfaceIndex, req->pQueryCompletionCallback, req->pQueryContext); +} + +/****************************************************************************** + * DnsQueryEx [DNSAPI.@] + * + */ +DNS_STATUS WINAPI DnsQueryEx(DNS_QUERY_REQUEST *request, DNS_QUERY_RESULT *result, DNS_QUERY_CANCEL *cancel) +{ + FIXME("(%s %p %p)\n", debugstr_query_request(request), result, cancel); + return DNS_ERROR_RCODE_NOT_IMPLEMENTED; +} + /****************************************************************************** * DnsQuery_A [DNSAPI.@] *