Share via


WSCDeinstallProvider (Windows CE 5.0)

Send Feedback

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

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 Values

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 trusted.

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

WSCInstallProvider | WSCEnumProtocols

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.