mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:03:25 +00:00
[DNSAPI][REACTOS] Add a header for undocumented dnsapi functions and use it in dnsapi.dll
This commit is contained in:
parent
4601b11fc9
commit
4455dcb26e
4 changed files with 40 additions and 7 deletions
|
@ -41,7 +41,7 @@
|
||||||
@ stdcall DnsFreeNetworkInformation()
|
@ stdcall DnsFreeNetworkInformation()
|
||||||
@ stdcall DnsFreeSearchInformation()
|
@ stdcall DnsFreeSearchInformation()
|
||||||
@ stdcall DnsGetBufferLengthForStringCopy()
|
@ stdcall DnsGetBufferLengthForStringCopy()
|
||||||
@ stdcall DnsGetCacheDataTable()
|
@ stdcall DnsGetCacheDataTable(ptr)
|
||||||
@ stdcall DnsGetDnsServerList()
|
@ stdcall DnsGetDnsServerList()
|
||||||
@ stdcall DnsGetDomainName()
|
@ stdcall DnsGetDomainName()
|
||||||
@ stdcall DnsGetHostName_A()
|
@ stdcall DnsGetHostName_A()
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
#include <winnls.h>
|
#include <winnls.h>
|
||||||
#include <windns.h>
|
#include <windns.h>
|
||||||
|
#include <reactos/windns_undoc.h>
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ndk/rtlfuncs.h>
|
#include <ndk/rtlfuncs.h>
|
||||||
|
|
||||||
|
|
|
@ -216,11 +216,11 @@ DnsFindAuthoritativeZone()
|
||||||
return ERROR_OUTOFMEMORY;
|
return ERROR_OUTOFMEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
DNS_STATUS WINAPI
|
BOOL WINAPI
|
||||||
DnsFlushResolverCache()
|
DnsFlushResolverCache(VOID)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return ERROR_OUTOFMEMORY;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
|
@ -273,11 +273,13 @@ DnsGetBufferLengthForStringCopy()
|
||||||
return ERROR_OUTOFMEMORY;
|
return ERROR_OUTOFMEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
DNS_STATUS WINAPI
|
BOOL
|
||||||
DnsGetCacheDataTable()
|
WINAPI
|
||||||
|
DnsGetCacheDataTable(
|
||||||
|
_Out_ PDNSCACHEENTRY *DnsCache)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return ERROR_OUTOFMEMORY;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
DNS_STATUS WINAPI
|
DNS_STATUS WINAPI
|
||||||
|
|
30
sdk/include/reactos/windns_undoc.h
Normal file
30
sdk/include/reactos/windns_undoc.h
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#ifndef _WINDNS_UNDOC_H_
|
||||||
|
#define _WINDNS_UNDOC_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct _DNS_CACHE_ENTRY
|
||||||
|
{
|
||||||
|
struct _DNS_CACHE_ENTRY *pNext; /* Pointer to next entry */
|
||||||
|
PWSTR pszName; /* DNS Record Name */
|
||||||
|
unsigned short wType; /* DNS Record Type */
|
||||||
|
unsigned short wUnknown; /* Unknown */
|
||||||
|
unsigned short wFlags; /* DNS Record Flags */
|
||||||
|
} DNSCACHEENTRY, *PDNSCACHEENTRY;
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DnsFlushResolverCache(VOID);
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
DnsGetCacheDataTable(
|
||||||
|
_Out_ PDNSCACHEENTRY *DnsCache);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _WINDNS_UNDOC_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue