Platform SDK: Windows Sockets |
The WSCGetProviderPath function retrieves the DLL path for the specified provider.
int WSCGetProviderPath( LPGUID lpProviderId, LPWSTR lpszProviderDllPath, LPINT lpProviderDllPathLen, LPINT lpErrno );
If no error occurs, WSCGetProviderPath returns zero. Otherwise, it returns SOCKET_ERROR. The specific error code is available in lpErrno.
The WSCGetProviderPath function retrieves the DLL path for the specified provider. The DLL path can contain embedded environment strings, such as %SystemRoot%, and thus should be expanded prior to being used with the Win32 LoadLibrary function. For more information, see LoadLibrary.
Error code | Meaning |
---|---|
WSAEINVAL | The lpProviderId parameter does not specify a valid provider. |
WSAEFAULT | The lpszProviderDllPath or lpErrno parameter is not in a valid part of the user address space, or lpProviderDllPathLen is too small. |
Version: Requires Windows Sockets 2.0.
Header: Declared in Ws2spi.h.
Library: Use Ws2_32.lib.