The WSCDeinstallProvider function removes the specified transport provider from the system configuration database.
int WSCDeinstallProvider (
LPGUID lpProviderId,
LPINT lpErrno
);
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.
If no error occurs, WSCDeinstallProvider returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code is available in lpErrno.
WSAEINVAL | lpProviderId does not specify a valid provider. |
WSAEFAULT | lpErrno is not in a valid part of the user address space. |
Windows NT: Yes
Windows: Yes
Windows CE: Unsupported.
Header: Declared in ws2spi.h.
Import Library: Link with ws2_32.lib.
WSCInstallProvider, WSCEnumProtocols