WSACleanupWithNLMHandle

Terminates the use of Winsock for the specified application.

Library:LibC
Standard:Novell
Service:Winsock

Syntax

  #include <winsock/ws2ext.h> 
   
  int WSPAPI WSACleanupWithNLMHandle (
     void    *nlmHandle);
  

Parameters

nlmHandle

(IN) Points to NLM handle of the application which is deregistering from Winsock.

Return Values

If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:

Decimal

Constant

Description

10022

WSAEINVAL

NLM handle is invalid.

Remarks

The WSACleanupWithNLMHandle function has the equivalent functionality of WSACleanup but is used after a successful call to WSAStartupWithNLMHandle to deregister the specific NLM from Winsock.

See Also