[DNSAPI][DNSRSLVR] Parse the hosts file when the resolver is initializing

- Move the hosts file handling from dnsapi.dll to the resolver service. Now, the hosts file is no longer parsed on each query.
- Add support for DNS_QUERY_WIRE_ONLY and DNS_QUERY_NO_WIRE_QUERY flags to R_ResolverQuery.
- GetCurrentTimeInSeconds() should return DWORD instead of DNS_STATUS.
This commit is contained in:
Eric Kohl 2019-11-23 17:07:59 +01:00
parent d4a0549eb6
commit 630f34a0d0
9 changed files with 484 additions and 263 deletions

View file

@ -10,6 +10,9 @@
cpp_quote("#ifndef _WINDNS_INCLUDED_")
#include <windns.h>
cpp_quote("#endif")
cpp_quote("#ifndef _WINDNS_UNDOC_H_")
#include <windns_undoc.h>
cpp_quote("#endif")
typedef [handle, string] LPWSTR DNSRSLVR_HANDLE;

View file

@ -27,7 +27,7 @@ WINAPI
DnsGetCacheDataTable(
_Out_ PDNS_CACHE_ENTRY *DnsCache);
DNS_STATUS
DWORD
WINAPI
GetCurrentTimeInSeconds(VOID);