This topic has not yet been rated - Rate this topic

NSPStartup (Windows Embedded CE 6.0)

1/6/2010

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 
);
lpProviderId

[in] Indicates the desired provider for which to return the entry points.

lpnspRoutines

[out] Pointer to all the provider entry points.

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.

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.

Headerws2spi.h
LibraryWs2.lib
Windows Embedded CEWindows CE .NET 4.0 and later
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.