MIB_UDPSTATS2 structure (udpmib.h)
The MIB_UDPSTATS2 structure contains statistics for the User Datagram Protocol (UDP) running on the local computer. This structure is different from MIB_UDPSTATS structure in that it uses 64-bit counters, rather than 32-bit counters.
Syntax
typedef struct _MIB_UDPSTATS2 {
DWORD64 dw64InDatagrams;
DWORD dwNoPorts;
DWORD dwInErrors;
DWORD64 dw64OutDatagrams;
DWORD dwNumAddrs;
} MIB_UDPSTATS2, *PMIB_UDPSTATS2;
Members
dw64InDatagrams
The number of datagrams received.
dwNoPorts
The number of datagrams received that were discarded because the port specified was invalid.
dwInErrors
The number of erroneous datagrams received. This number does not include the value contained by the dwNoPorts member.
dw64OutDatagrams
The number of datagrams transmitted.
dwNumAddrs
The number of entries in the UDP listener table.
Remarks
The GetUdpStatisticsEx2 function returns a pointer to a MIB_UDPSTATS2 structure.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1709 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Header | udpmib.h (include Iphlpapi.h) |