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.
iError
Notes For Windows Sockets Suppliers
In a Win32 environment, this function will invoke SetLastError().
Return Value
None.
Error Codes
WSANOTINITIALISED
See Also