- Stub GetExtendedTcpTable
authorCameron Gutman <aicommander@gmail.com>
Wed, 3 Mar 2010 00:05:17 +0000 (00:05 +0000)
committerCameron Gutman <aicommander@gmail.com>
Wed, 3 Mar 2010 00:05:17 +0000 (00:05 +0000)
 - Fixes bug 5201
 - Patch by Olaf Siejka

svn path=/trunk/; revision=45771

reactos/dll/win32/iphlpapi/iphlpapi.spec
reactos/dll/win32/iphlpapi/iphlpapi_main.c
reactos/include/psdk/iphlpapi.h
reactos/include/psdk/iprtrmib.h

index 788666a..b07c464 100644 (file)
@@ -32,7 +32,7 @@
 @ stub GetBestInterfaceFromStack
 @ stdcall GetBestRoute( long long long )
 @ stub GetBestRouteFromStack
-@ stub GetExtendedTcpTable
+@ stdcall GetExtendedTcpTable( ptr ptr long long long long )
 @ stub GetExtendedUdpTable
 @ stdcall GetFriendlyIfIndex( long )
 @ stdcall GetIcmpStatistics( ptr )
index 6d27ce6..47146e6 100644 (file)
@@ -789,6 +789,32 @@ DWORD WINAPI GetBestRoute(DWORD dwDestAddr, DWORD dwSourceAddr, PMIB_IPFORWARDRO
   return ret;
 }
 
+/******************************************************************
+ *    GetExtendedTcpTable (IPHLPAPI.@)
+ *
+ * Get the table of TCP endpoints available to the application.
+ *
+ * PARAMS
+ *  pTcpTable [Out]    table struct with the filtered TCP endpoints available to application
+ *  pdwSize   [In/Out] estimated size of the structure returned in pTcpTable, in bytes
+ *  bOrder    [In]     whether to order the table
+ *  ulAf       [in]    version of IP used by the TCP endpoints
+ *  TableClass [in]    type of the TCP table structure from TCP_TABLE_CLASS
+ *  Reserved [in]      reserved - this value must be zero
+ *
+ * RETURNS
+ *  Success: NO_ERROR
+ *  Failure: either ERROR_INSUFFICIENT_BUFFER or ERROR_INVALID_PARAMETER
+ *
+ * NOTES
+ */
+DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, ULONG ulAf, TCP_TABLE_CLASS TableClass, ULONG Reserved)
+{
+       DWORD ret = NO_ERROR;
+       UNIMPLEMENTED;
+       return ret;     
+}
+
 
 /******************************************************************
  *    GetFriendlyIfIndex (IPHLPAPI.@)
index 1a844d3..9637194 100644 (file)
@@ -22,6 +22,7 @@ DWORD WINAPI GetAdapterIndex(LPWSTR,PULONG);
 DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO,PULONG);
 DWORD WINAPI GetBestInterface(IPAddr,PDWORD);
 DWORD WINAPI GetBestRoute(DWORD,DWORD,PMIB_IPFORWARDROW);
+DWORD WINAPI GetExtendedTcpTable(PVOID,PDWORD,BOOL,ULONG,TCP_TABLE_CLASS,ULONG);
 DWORD WINAPI GetFriendlyIfIndex(DWORD);
 DWORD WINAPI GetIcmpStatistics(PMIB_ICMP);
 DWORD WINAPI GetIfEntry(PMIB_IFROW);
index a59796f..6f18294 100644 (file)
@@ -286,4 +286,17 @@ typedef struct _MIB_IPNETTABLE
     MIB_IPNETROW table[1];
 } MIB_IPNETTABLE, *PMIB_IPNETTABLE;
 
+
+typedef enum {
+    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__ */