Author: janderwald
Date: Fri Feb 13 15:03:45 2015
New Revision: 66247
URL:
http://svn.reactos.org/svn/reactos?rev=66247&view=rev
Log:
[IPHLPAPI]
- hackplement GetExtendedTcpTable class TCP_TABLE_OWNER_PID_ALL
- fixes XAMPP control panel startup
Modified:
trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
Modified: trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/iphlpap…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/iphlpapi_main.c [iso-8859-1] Fri Feb 13 15:03:45
2015
@@ -781,11 +781,24 @@
*
* 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;
+
+ if (TableClass == TCP_TABLE_OWNER_PID_ALL) {
+ if (*pdwSize == 0) {
+ *pdwSize = sizeof(MIB_TCPTABLE_OWNER_PID);
+ return ERROR_INSUFFICIENT_BUFFER;
+ } else {
+ ZeroMemory(pTcpTable, sizeof(MIB_TCPTABLE_OWNER_PID));
+ return NO_ERROR;
+ }
+ }
+
+
+ UNIMPLEMENTED;
+ return ret;
}