UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:ws2spi.LPNSPINSTALLSERVICECLASS |
LPNSPINSTALLSERVICECLASS (ws2spi.h) |
The NSPInstallServiceClass function registers service class schema within the namespace providers. |
|
winsock\nspinstallserviceclass_2.htm |
WinSock |
437a3580-e296-4f20-8921-84e522cccc1a |
12/05/2018 |
LPNSPINSTALLSERVICECLASS, NSPInstallServiceClass, NSPInstallServiceClass function [Winsock], _win32_nspinstallserviceclass_2, winsock.nspinstallserviceclass_2, ws2spi/NSPInstallServiceClass |
ws2spi.h |
Windows |
Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
Windows |
19H1 |
|
|
|
|
|
|
The NSPInstallServiceClass function registers service class schema within the namespace providers.
The schema includes the class name, class identifier, and any namespace-specific type information that is common to all instances of the service, such as SAP identifier or object identifier. A dynamic namespace provider is expected to store any class information associated with that namespace.
A pointer to the GUID of the specific namespace provider that this service class schema is registered in.
A pointer to the service class schema information.
The function should return NO_ERROR (zero) if the routine succeeds. It should return SOCKET_ERROR (–1) if the routine fails and it must set the appropriate error code using WSASetLastError.
Error code | Meaning |
---|---|
The namespace provider cannot supply the requested class information. | |
There is not enough memory available to perform this operation. | |
The calling routine does not have sufficient privileges to perform this operation. | |
The service class information has already been registered for this service class identifier. To modify service class information, first call NSPRemoveServiceClass, then reinstall with updated class information data. | |
The service class identifier was invalid or improperly structured. This error is returned if the lpServiceClassInfo parameter is **NULL**. | |
The operation is not supported. This error is returned if the namespace provider does not implement this function. | |
The requested name is valid, but no data of the requested type was found. |
Namespace providers are encouraged, but not required, to store information that is specific to the namespace they support.