WSARemoveServiceClass  2G9TGF4

The Windows Sockets WSARemoveServiceClass function permanently unregisters service class schema.

INT WSARemoveServiceClass(

    LPGUID lpServiceClassId

 

   );

 

 

Parameters

lpServiceClassId

[in] 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 may be retrieved by calling WSAGetLastError.

Error Codes

WSAETYPE_NOT_FOUND

The specified class was not found.

WSAEACCESS

The calling routine does not have sufficient privileges to remove the Service.

WSANOTINITIALIZED

The Windows Sockets 2 DLL has not been initialized. The application must first call WSAStartup before calling any Windows Sockets functions.

WSAEINVAL

The specified GUID was not valid.