Partager via


WSCDeinstallProvider (Compact 2013)

3/26/2014

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, WSCDeinstallProvider returns 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 lpProviderId does not specify a valid provider.

WSAEFAULT

The lpErrno is 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.

Requirements

Header

ws2spi.h

Library

Ws2.lib

See Also

Reference

Winsock SPI Functions
WSCInstallProvider
WSCEnumProtocols