[DNSAPI][DNSRSLVR] Parse the hosts file when the resolver is initializing
[reactos.git] / base / services / dnsrslvr / precomp.h
index 3983d31..c0bbeec 100644 (file)
@@ -2,6 +2,7 @@
 #define _DNSRSLVR_PCH_
 
 #include <stdarg.h>
+#include <stdio.h>
 
 #define WIN32_NO_STATUS
 #define _INC_WINDOWS
 
 #include <windef.h>
 #include <winbase.h>
+#include <winnls.h>
+#include <winreg.h>
 #include <winsvc.h>
 #include <windns.h>
 #include <windns_undoc.h>
 
+#define NTOS_MODE_USER
 #include <ndk/rtlfuncs.h>
 #include <ndk/obfuncs.h>
 
 #include <dnsrslvr_s.h>
 
+#include <strsafe.h>
+
 typedef struct _RESOLVER_CACHE_ENTRY
 {
     LIST_ENTRY CacheLink;
@@ -37,10 +43,22 @@ VOID DnsIntCacheInitialize(VOID);
 VOID DnsIntCacheRemoveEntryItem(PRESOLVER_CACHE_ENTRY CacheEntry);
 VOID DnsIntCacheFree(VOID);
 VOID DnsIntCacheFlush(VOID);
-BOOL DnsIntCacheGetEntryFromName(LPCWSTR Name,
-                                 PDNS_RECORDW *Record);
+
+DNS_STATUS
+DnsIntCacheGetEntryByName(
+    LPCWSTR Name,
+    WORD wType,
+    DWORD dwFlags,
+    PDNS_RECORDW *Record);
+
 VOID DnsIntCacheAddEntry(PDNS_RECORDW Record);
 BOOL DnsIntCacheRemoveEntryByName(LPCWSTR Name);
 
 
+
+/* hostsfile.c */
+
+BOOL
+ReadHostsFile(VOID);
+
 #endif /* _DNSRSLVR_PCH_ */