Jump to navigation Jump to search
The WSAStartup function initiates use of the Winsock DLL by a process.
Finding calls to WSAStartup can often be an easy way to locate the start of network-related functionality.
int WSAStartup( _In_ WORD wVersionRequested, _Out_ LPWSADATA lpWSAData );
- wVersionRequested [in]
- The highest version of Windows Sockets specification that the caller can use. The high-order byte specifies the minor version number; the low-order byte specifies the major version number.
- lpWSAData [out]
- A pointer to the WSADATA data structure that is to receive details of the Windows Sockets implementation.
If successful, the WSAStartup function returns zero. Otherwise, it returns one of the error codes listed below.
The WSAStartup function directly returns the extended error code in the return value for this function. A call to the WSAGetLastError function is not needed and should not be used.
|The underlying network subsystem is not ready for network communication.|
|The version of Windows Sockets support requested is not provided by this particular Windows Sockets implementation.|
|A blocking Windows Sockets 1.1 operation is in progress.|
|A limit on the number of tasks supported by the Windows Sockets implementation has been reached.|
|The lpWSAData parameter is not a valid pointer.|