다음을 통해 공유


NSPStartup (Windows CE 5.0)

Send Feedback

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

This function is called by the client on initialization. NSPStartup and NSPCleanup must be called as pairs. All the NSP functions must be called from within an NSPStartup/NSPCleanup pair. WSC functions do not need to be called from within an NSPStartup/NSPCleanup pair.

int NSPStartup(LPGUID lpProviderId,LPNSP_ROUTINE lpnspRoutines);

Parameters

  • lpProviderId
    [in] Indicates the desired provider for which to return the entry points.
  • lpnspRoutines
    [out] Pointer to all the provider entry points.

Data Types

This function call requires the data defined in the NSP_Routine structure. This structure contains information regarding all the functions implemented by a given provider.

Return Values

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

The following table shows the possible error codes.

Value Description
WSAEINVAL One or more parameters were invalid or missing for this provider.
WSA_NOT_ENOUGH_MEMORY Not enough free memory available to perform this operation.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ws2spi.h.
Link Library: Ws2.lib.

See Also

NSPCleanup | NSP_Routine

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.