ReactOS  0.4.15-dev-5122-g72bdbdd
precomp.h
Go to the documentation of this file.
1 #ifndef _DNSRSLVR_PCH_
2 #define _DNSRSLVR_PCH_
3 
4 #include <stdarg.h>
5 #include <stdio.h>
6 
7 #define WIN32_NO_STATUS
8 #define _INC_WINDOWS
9 #define COM_NO_WINDOWS_H
10 
11 #include <windef.h>
12 #include <winbase.h>
13 #include <winnls.h>
14 #include <winreg.h>
15 #include <winsvc.h>
16 #include <windns.h>
17 #include <windns_undoc.h>
18 
19 #define NTOS_MODE_USER
20 #include <ndk/rtlfuncs.h>
21 #include <ndk/obfuncs.h>
22 
23 #include <dnsrslvr_s.h>
24 
25 #include <strsafe.h>
26 
27 typedef struct _RESOLVER_CACHE_ENTRY
28 {
33 
34 typedef struct _RESOLVER_CACHE
35 {
39 
40 
41 /* cache.c */
42 
46 
47 #define CACHE_FLUSH_HOSTS_FILE_ENTRIES 0x00000001
48 #define CACHE_FLUSH_NON_HOSTS_FILE_ENTRIES 0x00000002
49 #define CACHE_FLUSH_ALL 0x00000003
50 
51 DNS_STATUS
53  _In_ ULONG ulFlags);
54 
55 DNS_STATUS
57  _In_ LPCWSTR pszName,
58  _In_ WORD wType);
59 
60 DNS_STATUS
62  LPCWSTR Name,
63  WORD wType,
64  DWORD dwFlags,
66 
67 VOID
70  _In_ BOOL bHostsFileEntry);
71 
72 BOOL
74  _In_ LPCWSTR Name);
75 
76 DNS_STATUS
78  _Out_ DNS_CACHE_ENTRY **ppCacheEntries);
79 
80 
81 /* hostsfile.c */
82 
83 BOOL
85 
86 #endif /* _DNSRSLVR_PCH_ */
Definition: precomp.h:27
struct _RESOLVER_CACHE_ENTRY RESOLVER_CACHE_ENTRY
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
VOID DnsIntCacheFree(VOID)
Definition: cache.c:36
#define _Out_
Definition: ms_sal.h:345
DNS_STATUS DnsIntCacheGetEntryByName(LPCWSTR Name, WORD wType, DWORD dwFlags, PDNS_RECORDW *Record)
Definition: cache.c:150
LIST_ENTRY CacheLink
Definition: precomp.h:29
CRITICAL_SECTION Lock
Definition: precomp.h:37
DNS_STATUS DnsIntCacheGetEntries(_Out_ DNS_CACHE_ENTRY **ppCacheEntries)
Definition: cache.c:264
struct _RESOLVER_CACHE_ENTRY * PRESOLVER_CACHE_ENTRY
_In_ struct _KBUGCHECK_REASON_CALLBACK_RECORD * Record
Definition: ketypes.h:256
unsigned int BOOL
Definition: ntddk_ex.h:94
DNS_STATUS DnsIntCacheFlush(_In_ ULONG ulFlags)
Definition: cache.c:69
Definition: windns_undoc.h:8
#define _In_
Definition: ms_sal.h:308
struct _RESOLVER_CACHE RESOLVER_CACHE
DNS_STATUS DnsIntFlushCacheEntry(_In_ LPCWSTR pszName, _In_ WORD wType)
Definition: cache.c:106
LIST_ENTRY RecordList
Definition: precomp.h:36
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL bHostsFileEntry
Definition: precomp.h:30
BOOL DnsIntCacheRemoveEntryByName(_In_ LPCWSTR Name)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
VOID DnsIntCacheInitialize(VOID)
Definition: cache.c:21
Definition: typedefs.h:119
VOID DnsIntCacheRemoveEntryItem(PRESOLVER_CACHE_ENTRY CacheEntry)
Definition: cache.c:54
PDNS_RECORDW Record
Definition: precomp.h:31
BOOL ReadHostsFile(VOID)
Definition: hostsfile.c:291
unsigned int ULONG
Definition: retypes.h:1
VOID DnsIntCacheAddEntry(_In_ PDNS_RECORDW Record, _In_ BOOL bHostsFileEntry)
Definition: cache.c:233
struct _RESOLVER_CACHE * PRESOLVER_CACHE