Export (0) Print
Expand All
Expand Minimize

WSARemoveServiceClass function

The WSARemoveServiceClass function permanently removes the service class schema from the registry.

Syntax


INT WSARemoveServiceClass(
  _In_  LPGUID lpServiceClassId
);

Parameters

lpServiceClassId [in]

Pointer to the GUID for the service class you want to remove.

Return value

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 codeMeaning
WSATYPE_NOT_FOUND

The specified class was not found.

WSAEACCES

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

WSAETOOMANYREFS

There are service instances that still reference the class. Removal of this class is not possible at this time.

WSANOTINITIALISED

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.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winsock2.h

Library

Ws2_32.lib

DLL

Ws2_32.dll

See also

Winsock Reference
Winsock Functions
WSAStartup
WSAGetLastError

 

 

Community Additions

ADD
Show:
© 2014 Microsoft