[2/2] iphlpapi: Add a stub for SetPerTcpConnectionEStats
Bruno Jesus
00cpxxx at gmail.com
Sat Aug 8 11:11:35 CDT 2015
Fixes bug https://bugs.winehq.org/show_bug.cgi?id=38755
-------------- next part --------------
---
dlls/iphlpapi/iphlpapi.spec | 2 +-
dlls/iphlpapi/iphlpapi_main.c | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
index d98d5c0..50ea35b 100644
--- a/dlls/iphlpapi/iphlpapi.spec
+++ b/dlls/iphlpapi/iphlpapi.spec
@@ -285,7 +285,7 @@
#@ stub SetNetworkInformation
#@ stub SetPerTcp6ConnectionEStats
#@ stub SetPerTcp6ConnectionStats
-#@ stub SetPerTcpConnectionEStats
+@ stdcall SetPerTcpConnectionEStats( ptr long ptr long long long )
#@ stub SetPerTcpConnectionStats
@ stub SetProxyArpEntryToStack
@ stub SetRouteWithRef
diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index b6ab612..c03dec2 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -53,6 +53,7 @@
#include "fltdefs.h"
#include "ifdef.h"
#include "netioapi.h"
+#include "tcpestats.h"
#include "wine/debug.h"
#include "wine/unicode.h"
@@ -2706,6 +2707,17 @@ DWORD WINAPI SetTcpEntry(PMIB_TCPROW pTcpRow)
return 0;
}
+/******************************************************************
+ * SetPerTcpConnectionEStats (IPHLPAPI.@)
+ */
+DWORD WINAPI SetPerTcpConnectionEStats(PMIB_TCPROW row, TCP_ESTATS_TYPE state, PBYTE rw,
+ ULONG version, ULONG size, ULONG offset)
+{
+ FIXME("(row %p, state %d, rw %p, version %u, size %u, offset %u): stub\n",
+ row, state, rw, version, size, offset);
+ return ERROR_NOT_SUPPORTED;
+}
+
/******************************************************************
* UnenableRouter (IPHLPAPI.@)
--
2.1.4
More information about the wine-patches
mailing list