ReactOS 0.4.16-dev-122-g325d74c
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
28{
33
34typedef 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
51DNS_STATUS
53 _In_ ULONG ulFlags);
54
55DNS_STATUS
57 _In_ LPCWSTR pszName,
58 _In_ WORD wType);
59
60DNS_STATUS
63 WORD wType,
66
67VOID
70 _In_ BOOL bHostsFileEntry);
71
72BOOL
75
76DNS_STATUS
78 _Out_ DNS_CACHE_ENTRY **ppCacheEntries);
79
80
81/* hostsfile.c */
82
83BOOL
85
86#endif /* _DNSRSLVR_PCH_ */
VOID DnsIntCacheRemoveEntryItem(PRESOLVER_CACHE_ENTRY CacheEntry)
Definition: cache.c:54
struct _RESOLVER_CACHE RESOLVER_CACHE
DNS_STATUS DnsIntCacheGetEntryByName(LPCWSTR Name, WORD wType, DWORD dwFlags, PDNS_RECORDW *Record)
Definition: cache.c:150
BOOL ReadHostsFile(VOID)
Definition: hostsfile.c:291
struct _RESOLVER_CACHE * PRESOLVER_CACHE
BOOL DnsIntCacheRemoveEntryByName(_In_ LPCWSTR Name)
DNS_STATUS DnsIntCacheGetEntries(_Out_ DNS_CACHE_ENTRY **ppCacheEntries)
Definition: cache.c:264
VOID DnsIntCacheFree(VOID)
Definition: cache.c:36
VOID DnsIntCacheInitialize(VOID)
Definition: cache.c:21
DNS_STATUS DnsIntFlushCacheEntry(_In_ LPCWSTR pszName, _In_ WORD wType)
Definition: cache.c:106
struct _RESOLVER_CACHE_ENTRY RESOLVER_CACHE_ENTRY
struct _RESOLVER_CACHE_ENTRY * PRESOLVER_CACHE_ENTRY
DNS_STATUS DnsIntCacheFlush(_In_ ULONG ulFlags)
Definition: cache.c:69
VOID DnsIntCacheAddEntry(_In_ PDNS_RECORDW Record, _In_ BOOL bHostsFileEntry)
Definition: cache.c:233
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
Definition: windns_undoc.h:9
Definition: typedefs.h:120
Definition: precomp.h:28
LIST_ENTRY CacheLink
Definition: precomp.h:29
PDNS_RECORDW Record
Definition: precomp.h:31
BOOL bHostsFileEntry
Definition: precomp.h:30
LIST_ENTRY RecordList
Definition: precomp.h:36
CRITICAL_SECTION Lock
Definition: precomp.h:37
uint32_t ULONG
Definition: typedefs.h:59
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
_In_ struct _KBUGCHECK_REASON_CALLBACK_RECORD * Record
Definition: ketypes.h:268
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185