INT WSAGetServiceClassNameByClassId(
LPGUID lpServiceClassId,
LPTSTR lpszServiceClassName,
LPDWORD lpdwBufferLength
);
The WSAGetServiceClassNameByClassId function returns a value of zero if successful. Otherwise, the value SOCKET_ERROR is returned, and a specific error number can be retrieved by calling WSAGetLastError.
WSAEFAULT | The specified buffer referenced by lpszServiceClassName is too small. Pass in a larger buffer. |
WSA_INVALID_PARAMETER | The lpServiceClassId parameter specified is invalid. |
WSANOTINITIALIZED | The WS2_32.DLL has not been initialized. The application must first call WSAStartup before calling any Windows Sockets functions. |
WSA NOT ENOUGH MEMORY | There was insufficient memory to perform the operation. |
Windows NT: Yes
Windows: Yes
Windows CE: Unsupported.
Header: Declared in winsock2.h.
Import Library: Link with ws2_32.lib.