The Windows Sockets WSAEnumNameSpaceProviders function retrieves information about available name spaces.
INT WSAAPI WSAEnumNameSpaceProviders (
IN OUT LPDWORD lpdwBufferLength,
OUT LPWSANAMESPACE_INFO lpnspBuffer
);
The WSAEnumNameSpaceProviders function returns the number of WSANAMESPACE_INFO structures copied into lpnspBuffer. Otherwise, the value SOCKET_ERROR is returned, and a specific error number can be retrieved by calling WSAGetLastError.
WSAEFAULT | the buffer length was too small to receive all the relevant WSANAMESPACE_INFO structures and associated information. Pass in a buffer at least as large as the value returned in lpdwBufferLength. |
WSANOTINITIALIZED | The WS2_32.DLL has not been initialized. The application must first call WSAStartup before calling any Windows Sockets functions. |
WSA NOT ENOUGH MEMORY | There was insufficient memory to perform the operation. |
Windows NT: Yes
Windows: Yes
Windows CE: Unsupported.
Header: Declared in winsock2.h.
Import Library: Link with ws2_32.lib.