[PATCH v2 2/2] iphlpapi: Add GetPerTcpConnectionEStats stub.

Mohamad Al-Jaf mohamadaljaf at gmail.com
Mon Apr 25 23:00:10 CDT 2022


From: Austin English <austinenglish at gmail.com>

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52677
Signed-off-by: Mohamad Al-Jaf <mohamadaljaf at gmail.com>
---
v2: - Formatting.
    - Add prototype.
    - Remove rw = ro_static = ro_dynamic = NULL.

I don't think the above line is needed.

Screenshot: https://i.imgur.com/RkzgjBG.png

Austin signed-off on his original patch but I didn't add it
here because of the above changes.

Please don't commit this unless Austin signs off on it.

Thanks again, Austin. :)
---
 dlls/iphlpapi/iphlpapi.spec   |  2 +-
 dlls/iphlpapi/iphlpapi_main.c | 13 +++++++++++++
 include/iphlpapi.h            |  4 ++++
 3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
index 90bf290c9bd..565c98305c5 100644
--- a/dlls/iphlpapi/iphlpapi.spec
+++ b/dlls/iphlpapi/iphlpapi.spec
@@ -130,7 +130,7 @@
 @ stdcall GetPerAdapterInfo( long ptr ptr )
 #@ stub GetPerTcp6ConnectionEStats
 #@ stub GetPerTcp6ConnectionStats
-#@ stub GetPerTcpConnectionEStats
+@ stdcall GetPerTcpConnectionEStats(ptr long ptr long long ptr long long ptr long long)
 #@ stub GetPerTcpConnectionStats
 @ stdcall GetRTTAndHopCount( long ptr long ptr )
 #@ stub GetSessionCompartmentId
diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index e002e12e2fd..5370f758281 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -2750,6 +2750,19 @@ DWORD WINAPI GetPerAdapterInfo( ULONG index, IP_PER_ADAPTER_INFO *info, ULONG *s
 }
 
 
+/***********************************************************************
+ *    GetPerTcpConnectionEStats (IPHLPAPI.@)
+ */
+ULONG WINAPI GetPerTcpConnectionEStats( MIB_TCPROW *row, TCP_ESTATS_TYPE stats, UCHAR *rw, ULONG rw_version,
+                                        ULONG rw_size, UCHAR *ro_static, ULONG ro_static_version,
+                                        ULONG ro_static_size, UCHAR *ro_dynamic, ULONG ro_dynamic_version,
+                                        ULONG ro_dynamic_size )
+{
+    FIXME( "(%p, %d, %p, %ld, %ld, %p, %ld, %ld, %p, %ld, %ld): stub\n", row, stats, rw, rw_version, rw_size,
+           ro_static, ro_static_version, ro_static_size, ro_dynamic, ro_dynamic_version, ro_dynamic_size );
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
 /******************************************************************
  *    GetRTTAndHopCount (IPHLPAPI.@)
  *
diff --git a/include/iphlpapi.h b/include/iphlpapi.h
index 4e156913426..50267d199c0 100644
--- a/include/iphlpapi.h
+++ b/include/iphlpapi.h
@@ -158,6 +158,10 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen);
 DWORD WINAPI GetPerAdapterInfo(ULONG IfIndex,
  PIP_PER_ADAPTER_INFO pPerAdapterInfo, PULONG pOutBufLen);
 
+ULONG WINAPI GetPerTcpConnectionEStats(MIB_TCPROW *row, TCP_ESTATS_TYPE stats,
+ UCHAR *rw, ULONG rw_version, ULONG rw_size, UCHAR *ro_static, ULONG ro_static_version,
+ ULONG ro_static_size, UCHAR *ro_dynamic, ULONG ro_dynamic_version, ULONG ro_dynamic_size);
+
 DWORD WINAPI IpReleaseAddress(PIP_ADAPTER_INDEX_MAP AdapterInfo);
 
 DWORD WINAPI IpRenewAddress(PIP_ADAPTER_INDEX_MAP AdapterInfo);
-- 
2.36.0




More information about the wine-devel mailing list