iphlpapi: Add a stub implementation of GetExtendedTcpTable.

This commit is contained in:
Hans Leidekker 2011-12-19 15:41:48 +01:00 committed by Alexandre Julliard
parent 3a204f50ae
commit 895e7a5f5b
4 changed files with 33 additions and 0 deletions

View File

@ -26,6 +26,7 @@
@ stub GetBestInterfaceFromStack @ stub GetBestInterfaceFromStack
@ stdcall GetBestRoute( long long long ) @ stdcall GetBestRoute( long long long )
@ stub GetBestRouteFromStack @ stub GetBestRouteFromStack
@ stdcall GetExtendedTcpTable( ptr ptr long long long long )
@ stdcall GetFriendlyIfIndex( long ) @ stdcall GetFriendlyIfIndex( long )
@ stdcall GetIcmpStatistics( ptr ) @ stdcall GetIcmpStatistics( ptr )
@ stub GetIcmpStatsFromStack @ stub GetIcmpStatsFromStack

View File

@ -1877,6 +1877,22 @@ DWORD WINAPI GetTcpTable(PMIB_TCPTABLE pTcpTable, PDWORD pdwSize, BOOL bOrder)
return ret; return ret;
} }
/******************************************************************
* GetExtendedTcpTable (IPHLPAPI.@)
*/
DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder,
ULONG ulAf, TCP_TABLE_CLASS TableClass, ULONG Reserved)
{
TRACE("pTcpTable %p, pdwSize %p, bOrder %d, ulAf %u, TableClass %u, Reserved %u\n",
pTcpTable, pdwSize, bOrder, ulAf, TableClass, Reserved);
if (ulAf == AF_INET6 || TableClass != TCP_TABLE_BASIC_ALL)
{
FIXME("ulAf = %u, TableClass = %u not supportted\n", ulAf, TableClass);
return ERROR_NOT_SUPPORTED;
}
return GetTcpTable(pTcpTable, pdwSize, bOrder);
}
/****************************************************************** /******************************************************************
* GetUdpTable (IPHLPAPI.@) * GetUdpTable (IPHLPAPI.@)

View File

@ -26,6 +26,9 @@ extern "C" {
#include <ipexport.h> #include <ipexport.h>
#include <iptypes.h> #include <iptypes.h>
DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder,
ULONG ulAf, TCP_TABLE_CLASS TableClass, ULONG Reserved);
DWORD WINAPI GetNumberOfInterfaces(PDWORD pdwNumIf); DWORD WINAPI GetNumberOfInterfaces(PDWORD pdwNumIf);
DWORD WINAPI GetIfEntry(PMIB_IFROW pIfRow); DWORD WINAPI GetIfEntry(PMIB_IFROW pIfRow);

View File

@ -25,4 +25,17 @@
#include <tcpmib.h> #include <tcpmib.h>
#include <udpmib.h> #include <udpmib.h>
typedef enum _TCP_TABLE_CLASS
{
TCP_TABLE_BASIC_LISTENER,
TCP_TABLE_BASIC_CONNECTIONS,
TCP_TABLE_BASIC_ALL,
TCP_TABLE_OWNER_PID_LISTENER,
TCP_TABLE_OWNER_PID_CONNECTIONS,
TCP_TABLE_OWNER_PID_ALL,
TCP_TABLE_OWNER_MODULE_LISTENER,
TCP_TABLE_OWNER_MODULE_CONNECTIONS,
TCP_TABLE_OWNER_MODULE_ALL
} TCP_TABLE_CLASS, *PTCP_TABLE_CLASS;
#endif /* WINE_IPRTRMIB_H__ */ #endif /* WINE_IPRTRMIB_H__ */