Name Space Provider Configuration and Installation

WSCInstallNameSpace

WSCUnInstallNameSpace

WSCEnableNSProvider

As mentioned previously, the installation applet for a name space provider must call WSCInstallNameSpace to register with the WS2_32.DLL and supply static configuration information. The WS2_32.DLL uses this information to accomplish its routing function and in its implementation of WSAEnumNameSpaceProviders. The WSCUnInstallNameSpace function is used to de-register a name space provider, and the WSCEnableNSProvider function is used to toggle a provider between the active and inactive states.

The results of these three operations are not visible to applications that are currently loaded and running. Only applications that begin executing after these operations have occurred will be affected by them.

This architecture explicitly supports the instantiation of multiple name space providers within a single DLL, however each such provider must have a unique name space provider ID (GUID) allocated, and a separate call to WSCInstallNameSpace must occur for each instantiation. Such a provider can determine which instantiation is being invoked because the name space provider ID appears as a parameter in every NSP function.