Platform SDK: Windows Sockets |
The WSCInstallNameSpace function installs a name-space provider. For providers that are able to support multiple names spaces, this function must be called once for every name space supported, and a unique provider identifier must be supplied each time.
int WSCInstallNameSpace ( LPWSTR lpszIdentifier, LPWSTR lpszPathName, DWORD dwNameSpace, DWORD dwVersion, LPGUID lpProviderId );
If no error occurs, the WSCInstallNameSpace function returns NO_ERROR (zero). Otherwise, it returns SOCKET_ERROR if the function fails, and it must set the appropriate error code using SetLastError.
The name space configuration functions do not affect applications that are already running. Newly installed name-space providers will not be visible to applications nor will the changes in a name-space provider's activation state. Applications launched after the call to WSCInstallNameSpace will see the changes.
Error code | Meaning |
---|---|
WSAEACCESS | Calling routine does not have sufficient privileges to install a name space. |
Version: Requires Windows Sockets 2.0.
Header: Declared in Ws2spi.h.
Library: Use Ws2_32.lib.