Group: IP Helper - Library: iphlpapi
Retrieving the User Datagram Protocol (UDP) listener table
DWORD GetUdpTable(
PMIB_UDPTABLE pUdpTable, // buffer for the listener table
PDWORD pdwSize, // size of buffer
BOOL bOrder // sort the table?
);
DECLARE INTEGER GetUdpTable IN iphlpapi;
STRING @ pUdpTable,;
INTEGER @ pdwSize,;
INTEGER bOrder
pUdpTable [out] Pointer to a buffer that receives the UDP listener table as a MIB_UDPTABLE structure.
pdwSize [in, out] Specifies the size of the buffer pointed to by the pUdpTable parameter.
bOrder [in] Specifies whether the returned table should be sorted.
If the function succeeds, the return value is NO_ERROR.