#ifndef WINE_IPSTATS_H_
#define WINE_IPSTATS_H_
-#include <stdarg.h>
+//#include <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "iprtrmib.h"
+//#include "windef.h"
+//#include "winbase.h"
+//#include "iprtrmib.h"
/* Fills in entry's interface stats, using name to find them.
* Returns ERROR_INVALID_PARAMETER if name or entry is NULL, NO_ERROR otherwise.
RouteEntry routes[1];
} RouteTable;
+typedef enum _CLASS_TABLE {
+ ClassBasic,
+ ClassModulePid,
+ ClassModule
+} CLASS_TABLE;
+
/* Allocates and returns to you the route table, or NULL if it can't allocate
- * enough memory. free() the returned table.
+ * enough memory. HeapFree() the returned table.
*/
RouteTable *getRouteTable(void);
DWORD getNumArpEntries(void);
/* Allocates and returns to you the arp table, or NULL if it can't allocate
- * enough memory. free() the returned table.
+ * enough memory. HeapFree() the returned table.
*/
PMIB_IPNETTABLE getArpTable(void);
DWORD getNumUdpEntries(void);
/* Allocates and returns to you the UDP state table, or NULL if it can't
- * allocate enough memory. free() the returned table.
+ * allocate enough memory. HeapFree() the returned table.
*/
-PMIB_UDPTABLE getUdpTable(void);
+PVOID getUdpTable(CLASS_TABLE Class);
/* Returns the number of entries in the TCP state table. */
DWORD getNumTcpEntries(void);
/* Allocates and returns to you the TCP state table, or NULL if it can't
- * allocate enough memory. free() the returned table.
+ * allocate enough memory. HeapFree() the returned table.
*/
-PMIB_TCPTABLE getTcpTable(void);
+PVOID getTcpTable(CLASS_TABLE Class);
#endif /* ndef WINE_IPSTATS_H_ */