WSASetLastError
WSASetLastError sets the error code which can be retrieved by WSAGetLastError call for the current thread.
Syntax
void WSASetLastError(
__in int iError
);
Parameters
iError
Specifies the error code to be returned by a subsequent WSAGetLastError call.
Return Value
None
Remarks
Error codes are 32-bit values. Bit 31 is the most significant bit. Bit 29 is reserved for application-defined error codes. No RT-TCP/IP error code has this bit set.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Winsock2.h |
Library | RtTcpip.lib |