WSCDeinstallProvider

The WSCDeinstallProvider function removes the specified transport provider from the system configuration database.

int WSCDeinstallProvider (
  LPGUID lpProviderId,   
  LPINT lpErrno          
);
 

Parameters

lpProviderId
[in] The globally unique identifier of the provider to deinstall. This value is stored within each WSAPROTOCOL_INFOW struct.
lpErrno
[out] A pointer to the error code.

Remarks

The WSCDeinstallProvider function removes the common Windows Sockets 2 configuration information for the specified provider. After this routine completes successfully, the configuration information stored in the registry will be changed. However, any WS2_32.DLL instances that are 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.

Return Values

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

Error Codes

WSAEINVAL lpProviderId does not specify a valid provider.
WSAEFAULT lpErrno is not in a valid part of the user address space.

QuickInfo

  Windows NT: Yes
  Windows: Yes
  Windows CE: Unsupported.
  Header: Declared in ws2spi.h.
  Import Library: Link with ws2_32.lib.

See Also

WSCInstallProvider, WSCEnumProtocols