Skip to content

Latest commit

 

History

History
178 lines (142 loc) · 4.95 KB

nc-ws2spi-lpnspinstallserviceclass.md

File metadata and controls

178 lines (142 loc) · 4.95 KB
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.
LPNSPINSTALLSERVICECLASS
NSPInstallServiceClass
NSPInstallServiceClass function [Winsock]
_win32_nspinstallserviceclass_2
winsock.nspinstallserviceclass_2
ws2spi/NSPInstallServiceClass
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
LPNSPINSTALLSERVICECLASS
ws2spi/LPNSPINSTALLSERVICECLASS
c++
APIRef
kbSyntax
UserDefined
Ws2spi.h
NSPInstallServiceClass

LPNSPINSTALLSERVICECLASS callback function

-description

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.

-parameters

-param lpProviderId [in]

A pointer to the GUID of the specific namespace provider that this service class schema is registered in.

-param lpServiceClassInfo [in]

A pointer to the service class schema information.

-returns

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
WSA_INVALID_PARAMETER
The namespace provider cannot supply the requested class information.
WSA_NOT_ENOUGH_MEMORY
There is not enough memory available to perform this operation.
WSAEACCES
The calling routine does not have sufficient privileges to perform this operation.
WSAEALREADY
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.
WSAEINVAL
The service class identifier was invalid or improperly structured. This error is returned if the lpServiceClassInfo parameter is **NULL**.
WSAEOPNOTSUPP
The operation is not supported. This error is returned if the namespace provider does not implement this function.
WSANO_DATA
The requested name is valid, but no data of the requested type was found.

-remarks

Namespace providers are encouraged, but not required, to store information that is specific to the namespace they support.

-see-also

NSPGetServiceClassInfo

NSPRemoveServiceClass

WSASERVICECLASSINFOW

WSASetLastError