The WPUGetProviderPath function retrieves the DLL path for the specified provider.
int WPUGetProviderPath (
LPGUID lpProviderId,
LPWSTR lpszProviderDllPath,
LPINT lpProviderDllPathLen,
LPINT lpErrno
);
The WPUGetProviderPath function retrieves the DLL path for the specified provider. The DLL path is null-terminated and can contain embedded environment strings (such as %SystemRoot%). Thus, the string should be expanded prior to being used with LoadLibrary. For more information, see LoadLibrary.
If no error occurs, WPUGetProviderPath 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 | lpszProviderDllPath or lpErrno is not in a valid part of the user address space, or lpProviderDllPathLen is too small. |
Windows NT: Yes
Windows: Yes
Windows CE: Unsupported.
Header: Declared in ws2spi.h.
WSCInstallProvider, WSCEnumProtocols