WSAStartup The Windows Sockets WSAStartup function initiates use of the Windows Sockets DLL by a process.
VB4-32,5,6
Declare Function WSAStartup Lib "WSOCK32" (ByVal wVersionRequired As Long, lpWSADATA As WSAData) As Long |
Operating Systems Supported |
Requires Windows Sockets 2.0 |
- 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. |
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. |
|