|
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 Values
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
Library | Rtxtcpip.lib |