WSAGetLastError should be invoked right after Windows sockets functions.
Attach a file by drag & drop or click to upload