GetUdpStatistics function (iphlpapi.h)
The GetUdpStatistics function retrieves the User Datagram Protocol (UDP) statistics for the local computer.
Syntax
IPHLPAPI_DLL_LINKAGE ULONG GetUdpStatistics(
[out] PMIB_UDPSTATS Stats
);
Parameters
[out] Stats
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | iphlpapi.h |
Library | Iphlpapi.lib |
DLL | Iphlpapi.dll |