The WSCInstallProvider function installs the specified transport provider into the system configuration database.
int WSCInstallProvider (
const LPGUID lpProviderId,
const LPWSTR lpszProviderDllPath,
const LPWSAPROTOCOL_INFOW lpProtocolInfoList,
DWORD dwNumberOfEntries,
LPINT lpErrno
);
This routine creates the necessary common Windows Sockets 2 configuration information for the specified provider. It is applicable to base protocols, layered protocols and protocol chains. After this routine completes successfully, the protocol information provided in lpProtocolInfoList will be returned by the WSAEnumProtocols. Note that in Win32 environments, only instances of the WS2_32.DLL created after a successful completion of this function will include the new entries in WSAEnumProtocols.
Any file installation or service provider specific configuration must be performed by the caller.
If no error occurs, WSCInstallProvider returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code is available in lpErrno.
WSAEFAULT | One of more of the arguments 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.
WSCDeinstallProvider, WSCEnumProtocols