[DNSAPI][DNSRSLVR] Implement DnsGetCacheDataTable()

This commit is contained in:
Eric Kohl 2019-12-22 11:21:04 +01:00
parent 6499cf9e1a
commit 6c7878f35e
7 changed files with 124 additions and 14 deletions

View file

@ -28,7 +28,11 @@ typedef [handle, string] LPWSTR DNSRSLVR_HANDLE;
interface DnsResolver
{
/* Function: 0x00 */
/* CRrReadCache */
DWORD
__stdcall
CRrReadCache(
[in, unique, string] DNSRSLVR_HANDLE pwszServerName,
[out] DNS_CACHE_ENTRY **ppCacheEntries);
/* Function: 0x01 */
/* CRrReadCacheEntry */
@ -56,10 +60,10 @@ interface DnsResolver
__stdcall
R_ResolverQuery(
[in, unique, string] DNSRSLVR_HANDLE pwszServerName,
[in, unique, string] LPCWSTR pwsName,
[in] WORD wType,
[in] DWORD Flags,
[in, out] DWORD *dwRecords,
[in, unique, string] LPCWSTR pwsName,
[in] WORD wType,
[in] DWORD Flags,
[in, out] DWORD *dwRecords,
[out] DNS_RECORDW **ppResultRecords);
/* Function: 0x08 */

View file

@ -8,7 +8,11 @@ extern "C" {
typedef struct _DNS_CACHE_ENTRY
{
struct _DNS_CACHE_ENTRY *pNext; /* Pointer to next entry */
#if defined(__midl) || defined(__WIDL__)
[string] PWSTR pszName; /* DNS Record Name */
#else
PWSTR pszName; /* DNS Record Name */
#endif
unsigned short wType1; /* DNS Record Type 1 */
unsigned short wType2; /* DNS Record Type 2 */
unsigned short wFlags; /* DNS Record Flags */