Platform SDK: Windows Sockets |
The NSPGetServiceClassInfo function retrieves service class schema information that has been retained by a name space provider. It is also used by the Windows Sockets 2 DLL in its implementation of WSAGetServiceClassNameByClassId.
The following macros from Winsock2.h are available and can aid in mapping between well known service classes and these name spaces.
SVCID_TCP(Port) SVCID_UDP(Port) SVCID_NETWARE(Object Type) |
Given a port for TCP/IP or UDP/IP or the object type in the case of Netware, returns the GUID. |
IS_SVCID_TCP(GUID) IS_SVCID_UDP(GUID) IS_SVCID_NETWARE(GUID) |
Returns TRUE if the GUID is within the allowable range. |
PORT_FROM_SVCID_TCP(GUID) PORT_FROM_SVCID_UDP(GUID) SAPID_FROM_SVCID_NETWARE(GUID) |
Returns the port or object type associated with the GUID. |