WSAEnumProtocolsW(3w)

NAME

WSAEnumProtocolsW (WS2_32.@)

SYNOPSIS

INT WSAEnumProtocolsW
 (
  LPINT               protocols,
  LPWSAPROTOCOL_INFOW buffer,
  LPDWORD             len
 )

DESCRIPTION

Retrieves information about specified set of active network protocols.

PARAMS

protocols [In] Pointer to NULL-terminated array of protocol id's. NULL retrieves information on all available protocols.

buffer [In] Pointer to a buffer to be filled with WSAPROTOCOL_INFO structures.

len [In/Out] Pointer to a variable specifying buffer size. On output the variable holds the number of bytes needed when the specified size is too small.

RETURNS

Success: number of WSAPROTOCOL_INFO structures in buffer.

Failure: SOCKET_ERROR.

NOTES

NT4SP5 does not return SPX if protocols == NULL.

BUGS

- NT4SP5 returns in addition these list of NETBIOS protocols (address family 17), each entry two times one for socket type 2 and 5.

iProtocol szProtocol 0x80000000 nkNb 0xfffffffa BT_CBENT7 0xfffffffb _CBENT7 0xfffffffc BT_NdisWan5 0xfffffffd BT_El9202 0xfffffffe _El9202 0xffffffff _NdisWan4.

- there is no check that the operating system supports the returned protocols

IMPLEMENTATION

Defined in "winsock2.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/ws2_32/protocol.c".

Debug channel "winsock".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout