Skip to content

Latest commit

 

History

History
152 lines (123 loc) · 4.04 KB

nf-ws2spi-nspstartup.md

File metadata and controls

152 lines (123 loc) · 4.04 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:ws2spi.NSPStartup
NSPStartup function (ws2spi.h)
Retrieves the dynamic information about a provider, such as the list of the DLL entry points.
NSPStartup
NSPStartup function [Winsock]
_win32_nspstartup_2
winsock.nspstartup_2
ws2spi/NSPStartup
winsock\nspstartup_2.htm
WinSock
ed9e4ff3-736a-4037-bf85-5572f0cd279d
12/05/2018
NSPStartup, NSPStartup function [Winsock], _win32_nspstartup_2, winsock.nspstartup_2, ws2spi/NSPStartup
ws2spi.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Windows
19H1
NSPStartup
ws2spi/NSPStartup
c++
APIRef
kbSyntax
UserDefined
Ws2spi.h
NSPStartup

NSPStartup function

-description

The NSPStartup function retrieves the dynamic information about a provider, such as the list of the DLL entry points.

This function is called by the client upon initialization. The NSPStartup and NSPCleanup functions must be called as pairs. All NSP functions must be called from within an NSPStartup/NSPCleanup pair. It is not required that WSC functions be called from within a NSPStartup/NSPCleanup pair.

-parameters

-param lpProviderId [in]

The desired provider from which to return the entry points.

-param lpnspRoutines [out]

A pointer to an NSP_ROUTINE structure that points to provider entry points if the function call is successful.

-returns

The function should return NO_ERROR (zero) if the routine succeeds. It should return SOCKET_ERROR (–1) if the function fails and it must set the appropriate error code using WSASetLastError.

Value Description
WSA_NOT_ENOUGH_MEMORY
There is not enough memory available to perform this operation.
WSAEINVAL
One or more parameters were invalid, or missing, for this provider.
WSAEINVALIDPROCTABLE
The procedure call table is invalid.
WSAEOPNOTSUPP
The operation is not supported. This error is returned if the namespace provider does not implement this function.
WSASYSNOTREADY
The NSPStartup function cannot operate at this time because the underlying system it uses to provide network services is currently unavailable.

-remarks

For more information, see the NSP_ROUTINE structure.

-see-also

NSPCleanup

NSP_ROUTINE

WSASetLastError