Platform SDK: Windows Sockets |
The installation of service classes, registration of service instances and basic query operations all map fairly directly from the API to the SPI. The WSAGetServiceClassNameByClassId function does not have a corresponding function in the SPI, as this function is implemented in Ws2_32.dll by making a call to NSPGetServiceClassInfo.
The helper functions WSAAddressToString and WSAStringToAddress are mapped to the corresponding functions in the transport API, as only a transport provider will necessarily know how to perform the translation on a SOCKADDR structure.