ReactOS  0.4.15-dev-1397-g19779b3
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  LPCWSTR Name,
58  WORD wType,
59  DWORD dwFlags,
61 
62 VOID
65  _In_ BOOL bHostsFileEntry);
66 
67 BOOL
69  _In_ LPCWSTR Name);
70 
71 DNS_STATUS
73  _Out_ DNS_CACHE_ENTRY **ppCacheEntries);
74 
75 
76 /* hostsfile.c */
77 
78 BOOL
80 
81 #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
DNS_STATUS DnsIntCacheGetEntryByName(LPCWSTR Name, WORD wType, DWORD dwFlags, PDNS_RECORDW *Record)
Definition: cache.c:105
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:219
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 _Out_
Definition: no_sal2.h:160
struct _RESOLVER_CACHE RESOLVER_CACHE
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
#define _In_
Definition: no_sal2.h:158
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:188
struct _RESOLVER_CACHE * PRESOLVER_CACHE