mirror of
https://github.com/reactos/reactos.git
synced 2024-10-20 16:06:27 +00:00
d49d7b3282
Patch written by Peter Hater and Christoph von Wittich. Slightly modified by me in order to - fix bit-rot - fix header include issues - disable integration with dnsapi because of confusing use of DnsQweryEx(). Integration with dnsapi will follow in a future commit. CORE-12159
46 lines
964 B
C
46 lines
964 B
C
#ifndef _DNSRSLVR_PCH_
|
|
#define _DNSRSLVR_PCH_
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define WIN32_NO_STATUS
|
|
#define _INC_WINDOWS
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <winsvc.h>
|
|
#include <windns.h>
|
|
|
|
#include <ndk/rtlfuncs.h>
|
|
#include <ndk/obfuncs.h>
|
|
|
|
#include <dnsrslvr_s.h>
|
|
|
|
typedef struct _RESOLVER_CACHE_ENTRY
|
|
{
|
|
LIST_ENTRY CacheLink;
|
|
PDNS_RECORDW Record;
|
|
} RESOLVER_CACHE_ENTRY, *PRESOLVER_CACHE_ENTRY;
|
|
|
|
typedef struct _RESOLVER_CACHE
|
|
{
|
|
LIST_ENTRY RecordList;
|
|
CRITICAL_SECTION Lock;
|
|
} RESOLVER_CACHE, *PRESOLVER_CACHE;
|
|
|
|
|
|
/* cache.c */
|
|
|
|
VOID DnsIntCacheInitialize(VOID);
|
|
VOID DnsIntCacheRemoveEntryItem(PRESOLVER_CACHE_ENTRY CacheEntry);
|
|
VOID DnsIntCacheFree(VOID);
|
|
VOID DnsIntCacheFlush(VOID);
|
|
BOOL DnsIntCacheGetEntryFromName(LPCWSTR Name,
|
|
PDNS_RECORDW *Record);
|
|
VOID DnsIntCacheAddEntry(PDNS_RECORDW Record);
|
|
BOOL DnsIntCacheRemoveEntryByName(LPCWSTR Name);
|
|
|
|
|
|
#endif /* _DNSRSLVR_PCH_ */
|