From: Austin English Subject: dnsapi: add DnsGetCacheDataTable stub Message-Id: Date: Thu, 19 May 2016 23:27:53 -0500 For https://bugs.winehq.org/show_bug.cgi?id=40606 -- -Austin From ad3de9d33c9c91472dc870bf92179fd3c6a5d5c0 Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 10 May 2016 21:51:49 -0500 Subject: [PATCH] dnsapi: add DnsGetCacheDataTable stub Signed-off-by: Austin English --- dlls/dnsapi/dnsapi.spec | 2 +- dlls/dnsapi/main.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/dlls/dnsapi/dnsapi.spec b/dlls/dnsapi/dnsapi.spec index de0ed1d..0d50c56 100644 --- a/dlls/dnsapi/dnsapi.spec +++ b/dlls/dnsapi/dnsapi.spec @@ -40,7 +40,7 @@ @ stub DnsFreeNetworkInformation @ stub DnsFreeSearchInformation @ stub DnsGetBufferLengthForStringCopy -@ stub DnsGetCacheDataTable +@ stdcall DnsGetCacheDataTable(ptr) @ stub DnsGetDnsServerList @ stub DnsGetDomainName @ stub DnsGetHostName_A diff --git a/dlls/dnsapi/main.c b/dlls/dnsapi/main.c index 93528a2..7f947bf 100644 --- a/dlls/dnsapi/main.c +++ b/dlls/dnsapi/main.c @@ -30,6 +30,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(dnsapi); +typedef struct _DNS_CACHE_ENTRY { + struct _DNS_CACHE_ENTRY* pNext; + PWSTR pszName; + unsigned short wType; + unsigned short wDataLength; + unsigned long dwFlags; +} DNSCACHEENTRY, *PDNSCACHEENTRY; + +typedef int (*DNS_GET_CACHE_DATA_TABLE)(PDNSCACHEENTRY); + BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) { TRACE( "(%p, %d, %p)\n", hinst, reason, reserved ); @@ -264,3 +274,13 @@ DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options, servers, reserved ); return ERROR_SUCCESS; } + +/****************************************************************************** + * DnsGetCacheDataTable [DNSAPI.@] + * + */ +DNS_GET_CACHE_DATA_TABLE WINAPI DnsGetCacheDataTable( DNSCACHEENTRY *cache ) +{ + FIXME( "(%p) stub\n", cache); + return ERROR_SUCCESS; +} -- 2.8.1