GetUdpStatistics function
The GetUdpStatistics function retrieves the User Datagram Protocol (UDP) statistics for the local computer.
Syntax
DWORD GetUdpStatistics( _Out_ PMIB_UDPSTATS pStats );
Parameters
- pStats [out]
-
Pointer to a MIB_UDPSTATS structure that receives the UDP statistics for the local computer.
Return value
If the function succeeds, the return value is NO_ERROR.
If the function fails, use FormatMessage to obtain the message string for the returned error.
Remarks
Windows Server 2003 and Windows XP: Use the GetUdpStatisticsEx function to obtain the UDP statistics for the IPv6 protocol.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- IP Helper Start Page
- IP Helper Function Reference
- GetIcmpStatistics
- GetIpStatistics
- GetTcpStatistics
- GetUdpStatisticsEx
- MIB_UDPSTATS
Show: