A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z


The Windows Sockets WSAStartup function initiates use of the Windows Sockets DLL by a process.

Declare Function WSAStartup Lib "WSOCK32" (ByVal wVersionRequired As Long, lpWSADATA As WSAData) As Long

Operating Systems Supported
Requires Windows Sockets 2.0


Parameter Information
- wVersionRequested
[in] The highest version of Windows Sockets support that the caller can use. The high order byte specifies the minor version (revision) 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.

Return Values
WSAStartup returns zero if successful. Otherwise, it returns one of the error codes listed below. Note that the normal mechanism whereby the application calls WSAGetLastError to determine the error code cannot be used, since the Windows Sockets DLL may not have established the client data area where the "last error" information is stored.

Last update: 07 April 2006