|
WSASetLastError
The Windows Sockets WSASetLastError function sets the error code which can be retrieved through the WSAGetLastError function.
Parameters
iError
[in] Specifies the error code to be returned by a subsequent WSAGetLastError call.
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.
The error code set by WSASetLastError is different from the error code reset by getsockopt SO_ERROR.
Return Values
None.
Error Codes
WSANOTINITIALISED
| A successful WSAStartup must occur before using this function.
|
See Also
getsockopt, WSAGetLastError
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|