WSACleanup
WSACleanup is a function in the Windows Sockets API (Winsock) used to terminate the process’s use of Winsock. It decrements the internal per-process reference count that was incremented by WSAStartup, and when the count reaches zero, Winsock resources are freed.
Winsock uses a per-process initialization model: a successful WSAStartup call increases the reference count, and WSACleanup
Return value and error handling: WSACleanup returns 0 on success. On failure, it returns SOCKET_ERROR and you
Implementation notes: WSACleanup is part of Winsock2. Programs that use Winsock should include Winsock2.h and link