Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
870a9fcb
Commit
870a9fcb
authored
Jun 01, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jun 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Add GetPerTcpConnectionEStats stub.
Based on a patch by Austin English. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=52868
parent
0336d66e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
iphlpapi.spec
dlls/iphlpapi/iphlpapi.spec
+1
-1
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+13
-1
iphlpapi.h
include/iphlpapi.h
+9
-0
No files found.
dlls/iphlpapi/iphlpapi.spec
View file @
870a9fcb
...
...
@@ -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
...
...
dlls/iphlpapi/iphlpapi_main.c
View file @
870a9fcb
...
...
@@ -32,7 +32,6 @@
#include "fltdefs.h"
#include "ifdef.h"
#include "netioapi.h"
#include "tcpestats.h"
#include "ip2string.h"
#include "netiodef.h"
#include "icmpapi.h"
...
...
@@ -4031,6 +4030,19 @@ DWORD WINAPI SetTcpEntry(PMIB_TCPROW pTcpRow)
return
0
;
}
/***********************************************************************
* 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
;
}
/******************************************************************
* SetPerTcpConnectionEStats (IPHLPAPI.@)
*/
...
...
include/iphlpapi.h
View file @
870a9fcb
...
...
@@ -25,6 +25,7 @@ extern "C" {
#include <iprtrmib.h>
#include <ipexport.h>
#include <iptypes.h>
#include <tcpestats.h>
#define NET_STRING_IPV4_ADDRESS 0x00000001
#define NET_STRING_IPV4_SERVICE 0x00000002
...
...
@@ -85,6 +86,11 @@ DWORD WINAPI GetTcpStatistics(PMIB_TCPSTATS pStats);
DWORD
WINAPI
GetTcpStatisticsEx
(
PMIB_TCPSTATS
pStats
,
DWORD
dwFamily
);
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
GetUdpStatistics
(
PMIB_UDPSTATS
pStats
);
DWORD
WINAPI
GetUdpStatisticsEx
(
PMIB_UDPSTATS
pStats
,
DWORD
dwFamily
);
...
...
@@ -99,6 +105,9 @@ DWORD WINAPI DeleteIpForwardEntry(PMIB_IPFORWARDROW pRoute);
DWORD
WINAPI
SetIpStatistics
(
PMIB_IPSTATS
pIpStats
);
DWORD
WINAPI
SetPerTcpConnectionEStats
(
MIB_TCPROW
*
row
,
TCP_ESTATS_TYPE
state
,
BYTE
*
rw
,
ULONG
version
,
ULONG
size
,
ULONG
offset
);
DWORD
WINAPI
SetIpTTL
(
UINT
nTTL
);
DWORD
WINAPI
CreateIpNetEntry
(
PMIB_IPNETROW
pArpEntry
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment