Group: Windows Sockets 2 (Winsock) - Library: iphlpapi
Winsock: retrieving information about available transport protocols
int WSAEnumProtocols(
LPINT lpiProtocols,
LPWSAPROTOCOL_INFO lpProtocolBuffer,
ILPDWORD lpdwBufferLength
); DECLARE INTEGER WSAEnumProtocols IN ws2_32;
INTEGER lpiProtocols,;
STRING @ lpProtBuf,;
INTEGER @ lpdwBufLen lpiProtocols [in] Null-terminated array of iProtocol values.
lpProtocolBuffer [out] Buffer that is filled with WSAPROTOCOL_INFO structures.
lpdwBufferLength [in, out] On input, the count of bytes in the lpProtocolBuffer buffer passed to WSAEnumProtocols.
If no error occurs, WSAEnumProtocols returns the number of protocols to be reported. Otherwise, a value of SOCKET_ERROR is returned and a specific error code can be retrieved by calling WSAGetLastError.
Home