WSASetLastError()

Description

Set the error code which can be retrieved by WSAGetLastError().

#include <winsock.h>

void PASCAL FAR WSASetLastError ( int iError );

Remarks

This function allows an application to set the error code to be returned by a subsequent WSAGetLastError() call for the current thread. Note that any subsequent Windows Sockets routine called by the application will override the error code as set by this routine.