https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7ce2f09a708658873f30b…
commit 7ce2f09a708658873f30be2dbef7c96d9bcec2c1
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Tue Nov 27 20:31:38 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Tue Nov 27 21:36:47 2018 +0100
[SDK] Add AllocateAndGetTcp/UdpEx/2TableFromStack() functions family
---
dll/win32/iphlpapi/iphlpapi_main.c | 4 ++--
sdk/include/psdk/iphlpapi.h | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dll/win32/iphlpapi/iphlpapi_main.c b/dll/win32/iphlpapi/iphlpapi_main.c
index cf89261517..ad979c19e5 100644
--- a/dll/win32/iphlpapi/iphlpapi_main.c
+++ b/dll/win32/iphlpapi/iphlpapi_main.c
@@ -321,7 +321,7 @@ DWORD WINAPI AllocateAndGetTcpTableFromStack(PMIB_TCPTABLE
*ppTcpTable,
* DWORD
*
*/
-DWORD WINAPI AllocateAndGetTcpExTableFromStack(PMIB_TCPTABLE_OWNER_PID *ppTcpTable,
+DWORD WINAPI AllocateAndGetTcpExTableFromStack(PVOID *ppTcpTable,
BOOL bOrder, HANDLE heap, DWORD flags, DWORD family)
{
DWORD ret;
@@ -456,7 +456,7 @@ DWORD WINAPI AllocateAndGetUdpTableFromStack(PMIB_UDPTABLE
*ppUdpTable,
* DWORD
*
*/
-DWORD WINAPI AllocateAndGetUdpExTableFromStack(PMIB_UDPTABLE_OWNER_PID *ppUdpTable,
+DWORD WINAPI AllocateAndGetUdpExTableFromStack(PVOID *ppUdpTable,
BOOL bOrder, HANDLE heap, DWORD flags, DWORD family)
{
DWORD ret;
diff --git a/sdk/include/psdk/iphlpapi.h b/sdk/include/psdk/iphlpapi.h
index a31ecf228f..ff3d279b0b 100644
--- a/sdk/include/psdk/iphlpapi.h
+++ b/sdk/include/psdk/iphlpapi.h
@@ -61,6 +61,13 @@ DWORD WINAPI SetIpTTL(UINT);
DWORD WINAPI SetTcpEntry(PMIB_TCPROW);
DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD);
+#if (NTDDI_VERSION < NTDDI_VISTA)
+DWORD WINAPI AllocateAndGetTcpExTableFromStack(PVOID*,BOOL,HANDLE,DWORD,DWORD);
+DWORD WINAPI
AllocateAndGetTcpExTable2FromStack(PVOID*,BOOL,HANDLE,DWORD,DWORD,TCP_TABLE_CLASS);
+DWORD WINAPI AllocateAndGetUdpExTableFromStack(PVOID*,BOOL,HANDLE,DWORD,DWORD);
+DWORD WINAPI
AllocateAndGetUdpExTable2FromStack(PVOID*,BOOL,HANDLE,DWORD,DWORD,UDP_TABLE_CLASS);
+#endif
+
#if (NTDDI_VERSION >= NTDDI_VISTA)
#include <netioapi.h>
#endif