WSASetLastError
WSASetLastError sets the error code that WSAGetLastError can retrieve for the current thread.
Syntax
void WSASetLastError(
[in] int iError
);
Parameters
[in] 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 29 is reserved for application-defined error codes. No TCP/IP error code has this bit set.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
winsock2.h |
RttcpipApi.lib |