2003-05-13 05:32:20 +02:00
|
|
|
/* ipstats.h
|
2006-01-25 13:14:12 +01:00
|
|
|
* Copyright (C) 2003,2006 Juan Lang
|
2003-05-13 05:32:20 +02:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-05-13 05:32:20 +02:00
|
|
|
*
|
2006-01-24 12:18:50 +01:00
|
|
|
* This module implements functions that get network-related statistics.
|
|
|
|
* It's meant to hide some platform-specificisms.
|
2003-05-13 05:32:20 +02:00
|
|
|
*/
|
|
|
|
#ifndef WINE_IPSTATS_H_
|
|
|
|
#define WINE_IPSTATS_H_
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2003-05-13 05:32:20 +02:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2003-05-13 05:32:20 +02:00
|
|
|
#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.
|
|
|
|
*/
|
2011-05-13 17:18:56 +02:00
|
|
|
DWORD getInterfaceStatsByName(const char *name, PMIB_IFROW entry) DECLSPEC_HIDDEN;
|
2003-05-13 05:32:20 +02:00
|
|
|
|
2012-04-16 12:35:32 +02:00
|
|
|
DWORD build_tcp_table(TCP_TABLE_CLASS, void **, BOOL, HANDLE, DWORD, DWORD *) DECLSPEC_HIDDEN;
|
2012-09-07 13:35:36 +02:00
|
|
|
DWORD build_udp_table(UDP_TABLE_CLASS, void **, BOOL, HANDLE, DWORD, DWORD *) DECLSPEC_HIDDEN;
|
2012-04-16 12:35:32 +02:00
|
|
|
|
2003-05-13 05:32:20 +02:00
|
|
|
#endif /* ndef WINE_IPSTATS_H_ */
|