https://git.reactos.org/?p=reactos.git;a=commitdiff;h=01bd090db0b1bc3439af3…
commit 01bd090db0b1bc3439af3b698a7285546f386233
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Nov 2 18:47:36 2019 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Nov 2 18:48:31 2019 +0100
[DNSAPI] Add missing exported functions
---
dll/win32/dnsapi/CMakeLists.txt | 1 +
dll/win32/dnsapi/dnsapi.spec | 68 ++++++++++++++++++++++++++++++++++++++---
2 files changed, 65 insertions(+), 4 deletions(-)
diff --git a/dll/win32/dnsapi/CMakeLists.txt b/dll/win32/dnsapi/CMakeLists.txt
index a0edb35c99b..244e764e697 100644
--- a/dll/win32/dnsapi/CMakeLists.txt
+++ b/dll/win32/dnsapi/CMakeLists.txt
@@ -25,6 +25,7 @@ list(APPEND SOURCE
add_library(dnsapi MODULE
${SOURCE}
dnsapi.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/dnsapi_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
set_module_type(dnsapi win32dll)
diff --git a/dll/win32/dnsapi/dnsapi.spec b/dll/win32/dnsapi/dnsapi.spec
index 64ce27a4b3e..bb69e12d333 100644
--- a/dll/win32/dnsapi/dnsapi.spec
+++ b/dll/win32/dnsapi/dnsapi.spec
@@ -1,3 +1,5 @@
+@ stub BreakRecordsIntoBlob
+@ stub CombineRecordsInBlob
@ stdcall DnsAcquireContextHandle_A(long ptr ptr)
@ stdcall DnsAcquireContextHandle_UTF8(long ptr ptr)
@ stdcall DnsAcquireContextHandle_W(long ptr ptr)
@@ -5,9 +7,11 @@
@ stdcall DnsAddRecordSet_UTF8()
@ stdcall DnsAddRecordSet_W()
@ stdcall DnsAllocateRecord()
-@ stdcall DnsApiHeapReset()
@ stdcall DnsApiAlloc(long)
+@ stdcall DnsApiHeapReset()
@ stdcall DnsApiFree(ptr)
+@ stub DnsApiRealloc
+@ stub DnsApiSetDebugGlobals
@ stdcall DnsAsyncRegisterHostAddrs_A()
@ stdcall DnsAsyncRegisterHostAddrs_UTF8()
@ stdcall DnsAsyncRegisterHostAddrs_W()
@@ -37,7 +41,9 @@
@ stdcall DnsFlushResolverCacheEntry_A(str)
@ stdcall DnsFlushResolverCacheEntry_UTF8()
@ stdcall DnsFlushResolverCacheEntry_W()
+@ stdcall DnsFree(ptr long)
@ stdcall DnsFreeAdapterInformation()
+@ stub DnsFreeConfigStructure
@ stdcall DnsFreeNetworkInformation()
@ stdcall DnsFreeSearchInformation()
@ stdcall DnsGetBufferLengthForStringCopy()
@@ -56,6 +62,7 @@
@ stdcall DnsGetPrimaryDomainName_UTF8()
@ stdcall DnsGetPrimaryDomainName_W()
@ stdcall DnsGetSearchInformation()
+@ stub DnsGlobals
@ stdcall DnsIpv6AddressToString()
@ stdcall DnsIpv6StringToAddress()
@ stdcall DnsIsAdapterDomainNameRegistrationEnabled()
@@ -70,17 +77,20 @@
@ stdcall DnsModifyRecordsInSet_A(ptr ptr long ptr ptr ptr)
@ stdcall DnsModifyRecordsInSet_UTF8(ptr ptr long ptr ptr ptr)
@ stdcall DnsModifyRecordsInSet_W(ptr ptr long ptr ptr ptr)
-@ stdcall DnsNameCompare_A(str str)
@ stdcall DnsNameCompareEx_A()
@ stdcall DnsNameCompareEx_UTF8()
@ stdcall DnsNameCompareEx_W()
+@ stdcall DnsNameCompare_A(str str)
@ stdcall DnsNameCompare_W(wstr wstr)
+
@ stdcall DnsNameCopy()
@ stdcall DnsNameCopyAllocate()
@ stdcall DnsNotifyResolver()
-@ stdcall DnsQuery_A(str long long ptr ptr ptr)
+@ stub DnsNotifyResolverClusterIp
+@ stub DnsNotifyResolverEx
@ stdcall DnsQueryConfig(long long wstr ptr ptr ptr)
@ stdcall DnsQueryEx()
+@ stdcall DnsQuery_A(str long long ptr ptr ptr)
@ stdcall DnsQuery_UTF8(str long long ptr ptr ptr)
@ stdcall DnsQuery_W(wstr long long ptr ptr ptr)
@ stdcall DnsRecordBuild_UTF8()
@@ -94,6 +104,7 @@
@ stdcall DnsRecordStringForType()
@ stdcall DnsRecordStringForWritableType()
@ stdcall DnsRecordTypeForName()
+@ stub DnsRegisterClusterAddress
@ stdcall DnsRelationalCompare_UTF8()
@ stdcall DnsRelationalCompare_W()
@ stdcall DnsReleaseContextHandle(ptr)
@@ -128,5 +139,54 @@
@ stdcall DnsWriteQuestionToBuffer_UTF8(ptr ptr str long long long)
@ stdcall DnsWriteQuestionToBuffer_W(ptr ptr wstr long long long)
@ stdcall DnsWriteReverseNameStringForIpAddress()
+@ stub Dns_AddRecordsToMessage
+@ stub Dns_AllocateMsgBuf
+@ stub Dns_BuildPacket
+@ stub Dns_CacheSocketCleanup
+@ stub Dns_CacheSocketInit
+@ stub Dns_CleanupWinsock
+@ stub Dns_CloseConnection
+@ stub Dns_CloseHostFile
+@ stub Dns_CloseSocket
+@ stub Dns_CreateMulticastSocket
+@ stub Dns_CreateSocket
+@ stub Dns_CreateSocketEx
+@ stub Dns_FindAuthoritativeZoneLib
+@ stub Dns_GetIpAddresses
+@ stub Dns_GetLocalIpAddressArray
+@ stub Dns_GetRandomXid
+@ stub Dns_InitializeMsgRemoteSockaddr
+@ stub Dns_InitializeWinsock
+@ stub Dns_InitQueryTimeouts
+@ stub Dns_OpenHostFile
+@ stub Dns_OpenTcpConnectionAndSend
+@ stub Dns_ParseMessage
+@ stub Dns_ParsePacketRecord
+@ stub Dns_PingAdapterServers
+@ stub Dns_ReadHostFileLine
+@ stub Dns_ReadPacketName
+@ stub Dns_ReadPacketNameAllocate
+@ stub Dns_ReadRecordStructureFromPacket
+@ stub Dns_RecvTcp
+@ stub Dns_ResetNetworkInfo
+@ stub Dns_SendAndRecvUdp
+@ stub Dns_SendEx
+@ stub Dns_SetRecordDatalength
+@ stub Dns_SkipPacketName
+@ stub Dns_SkipToRecord
+@ stub Dns_UpdateLib
+@ stub Dns_UpdateLibEx
+@ stub Dns_WriteDottedNameToPacket
+@ stub Dns_WriteQuestionToMessage
+@ stub Dns_WriteRecordStructureToPacketEx
@ stdcall GetCurrentTimeInSeconds()
-@ stdcall DnsFree(ptr long)
+@ stub GetRecordsForLocalName
+@ stub NetInfo_Build
+@ stub NetInfo_Clean
+@ stub NetInfo_Copy
+@ stub NetInfo_Free
+@ stub NetInfo_IsForUpdate
+@ stub NetInfo_ResetServerPriorities
+@ stub QueryDirectEx
+@ stub Query_Main
+@ stub Reg_ReadGlobalsEx