Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function removes the specified transport provider from the system configuration database.

Syntax

int WSCDeinstallProvider(
  LPGUID
 lpProviderId,
  LPINT
 lpErrno 
);

Parameters

lpProviderId

[in] Globally unique identifier of the provider to uninstall.

lpErrno

[out] Pointer to the error code.

Return Value

If no error occurs, WSCDeinstallProviderreturns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code is available in lpErrno.

The following table shows the possible error code.

Error value Description

WSAEINVAL

The lpProviderIddoes not specify a valid provider.

WSAEFAULT

The lpErrnois not in a valid part of the user address space.

WSANO_RECOVERY

Caller application is not privileged.

Remarks

This function removes the common Winsock configuration information for the specified provider. After this routine completes successfully, the configuration information stored in the registry will be changed. However, any ws2.dll instances currently in memory will not be able to see this change.

The caller of this function must remove any additional files or service provider–specific configuration information that is needed to completely de-install the service provider.

OS Versions:Windows CE .NET 4.0 and later.

Header:Ws2spi.h.

Link Library:Ws2.lib.

See Also