WSAGetIcmpErrorInfo function (ws2tcpip.h)
Retrieves information about an ICMP error received on a TCP socket during connection setup.
INT WSAGetIcmpErrorInfo( SOCKET Socket, ICMP_ERROR_INFO *Info );
A descriptor that identifies a TCP socket.
A pointer to an ICMP_ERROR_INFO structure. On success, the function initializes the structure.
If no ICMP error has been received since the last connect call, then WSANO_DATA is returned. This functionality is supported through the TCP_ICMP_ERROR_INFO socket option. WSAGetIcmpErrorInfo is a type-safe wrapper for getting this socket option, and we recommend it over getsockopt.
|Minimum supported client||Windows 10, version 2004 (10.0; Build 19041)|
|Minimum supported server||Windows Server, version 2004 (10.0; Build 19041)|