WSARemoveServiceClass

The Windows Sockets WSARemoveServiceClass function permanently unregisters service class schema.

INT WSARemoveServiceClass(
  LPGUID lpServiceClassId  
);
 

Parameters

lpServiceClassId
[in] A pointer to the GUID for the service class you want to remove.

Return Values

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.

Error Codes

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

QuickInfo

  Windows NT: Yes
  Windows: Yes
  Windows CE: Unsupported.
  Header: Declared in winsock2.h.
  Import Library: Link with ws2_32.lib.