WSAEnumProtocolsW(3w)

WSAEnumProtocolsW3w

Usage

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

Overview

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.

Implementation

Declared in "winsock2.h".

Implemented in "dlls/ws2_32/protocol.c".

Debug channel "winsock".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

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

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

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.