iphlpapi: Add a stub implementation of GetExtendedTcpTable.
This commit is contained in:
parent
3a204f50ae
commit
895e7a5f5b
|
@ -26,6 +26,7 @@
|
|||
@ stub GetBestInterfaceFromStack
|
||||
@ stdcall GetBestRoute( long long long )
|
||||
@ stub GetBestRouteFromStack
|
||||
@ stdcall GetExtendedTcpTable( ptr ptr long long long long )
|
||||
@ stdcall GetFriendlyIfIndex( long )
|
||||
@ stdcall GetIcmpStatistics( ptr )
|
||||
@ stub GetIcmpStatsFromStack
|
||||
|
|
|
@ -1877,6 +1877,22 @@ DWORD WINAPI GetTcpTable(PMIB_TCPTABLE pTcpTable, PDWORD pdwSize, BOOL bOrder)
|
|||
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.@)
|
||||
|
|
|
@ -26,6 +26,9 @@ extern "C" {
|
|||
#include <ipexport.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 GetIfEntry(PMIB_IFROW pIfRow);
|
||||
|
|
|
@ -25,4 +25,17 @@
|
|||
#include <tcpmib.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__ */
|
||||
|
|
Loading…
Reference in New Issue