The Windows Sockets WSARemoveServiceClass function permanently unregisters service class schema.
INT WSARemoveServiceClass(
LPGUID lpServiceClassId
);
The return value is zero if the operation was successful. Otherwise, the value SOCKET_ERROR is returned, and a specific error number can be retrieved by calling WSAGetLastError.
WSATYPE_NOT_FOUND | The specified class was not found. |
WSAEACCES | The calling routine does not have sufficient privileges to remove the Service. |
WSANOTINITIALIZED | The WS2_32.DLL has not been initialized. The application must first call WSAStartup before calling any Windows Sockets functions. |
WSAEINVAL | The specified GUID was not valid. |
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.