udpmib.h revision 3194da424708abdd288b28d96892b3a5f3f7df0b
342N/A/*
3979N/A * Copyright (C) 2003 Juan Lang
342N/A *
342N/A * This library is free software; you can redistribute it and/or
342N/A * modify it under the terms of the GNU Lesser General Public
342N/A * License as published by the Free Software Foundation; either
342N/A * version 2.1 of the License, or (at your option) any later version.
342N/A *
342N/A * This library is distributed in the hope that it will be useful,
342N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
342N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
342N/A * Lesser General Public License for more details.
342N/A *
342N/A * You should have received a copy of the GNU Lesser General Public
342N/A * License along with this library; if not, write to the Free Software
342N/A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
342N/A */
342N/A#ifndef __WINE_UDPMIB_H
1472N/A#define __WINE_UDPMIB_H
1472N/A
1472N/A#define TCPIP_OWNING_MODULE_SIZE 16
342N/A
342N/A
342N/A/* UDP table */
1879N/A
1879N/Atypedef struct _MIB_UDPROW
1879N/A{
1879N/A DWORD dwLocalAddr;
1879N/A DWORD dwLocalPort;
2280N/A} MIB_UDPROW, *PMIB_UDPROW;
1880N/A
2034N/Atypedef struct _MIB_UDPTABLE
1879N/A{
1879N/A DWORD dwNumEntries;
342N/A MIB_UDPROW table[1];
342N/A} MIB_UDPTABLE, *PMIB_UDPTABLE;
2591N/A
342N/Atypedef struct _MIB_UDPROW_OWNER_PID
2591N/A{
2591N/A DWORD dwLocalAddr;
342N/A DWORD dwLocalPort;
342N/A DWORD dwOwningPid;
342N/A} MIB_UDPROW_OWNER_PID, *PMIB_UDPROW_OWNER_PID;
342N/A
342N/Atypedef struct _MIB_UDPTABLE_OWNER_PID
342N/A{
342N/A DWORD dwNumEntries;
2591N/A MIB_UDPROW_OWNER_PID table[1];
342N/A} MIB_UDPTABLE_OWNER_PID, *PMIB_UDPTABLE_OWNER_PID;
2591N/A
2591N/Atypedef struct _MIB_UDPROW_OWNER_MODULE
2591N/A{
342N/A DWORD dwLocalAddr;
342N/A DWORD dwLocalPort;
342N/A DWORD dwOwningPid;
342N/A LARGE_INTEGER liCreateTimestamp;
2591N/A __C89_NAMELESS union
342N/A {
342N/A __C89_NAMELESS struct
342N/A {
1880N/A int SpecificPortBind:1;
2280N/A } __C89_NAMELESSSTRUCTNAME;
2280N/A int dwFlags;
2019N/A } __C89_NAMELESSUNIONNAME;
2280N/A ULONGLONG OwningModuleInfo[TCPIP_OWNING_MODULE_SIZE];
2280N/A} MIB_UDPROW_OWNER_MODULE, *PMIB_UDPROW_OWNER_MODULE;
1880N/A
2280N/Atypedef struct _MIB_UDPTABLE_OWNER_MODULE
2280N/A{
2280N/A DWORD dwNumEntries;
2280N/A MIB_UDPROW_OWNER_MODULE table[1];
342N/A} MIB_UDPTABLE_OWNER_MODULE, *PMIB_UDPTABLE_OWNER_MODULE;
2280N/A
2280N/A/* UDP statistics */
2280N/A
2019N/Atypedef struct _MIB_UDPSTATS
2280N/A{
2019N/A DWORD dwInDatagrams;
2019N/A DWORD dwNoPorts;
2655N/A DWORD dwInErrors;
2655N/A DWORD dwOutDatagrams;
2655N/A DWORD dwNumAddrs;
2655N/A} MIB_UDPSTATS, *PMIB_UDPSTATS;
2655N/A
2655N/A#endif /* __WINE_UDPMIB_H */
2655N/A