Terminates the use of Winsock for the specified application.
#include <winsock/ws2ext.h> int WSPAPI WSACleanupWithNLMHandle ( void *nlmHandle);
(IN) Points to NLM handle of the application which is deregistering from Winsock.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
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.