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 WSAAsyncSelect function requests Windows message-based notification of network events for a socket.

Declare Function WSAAsyncSelect Lib "wsock32.dll" (ByVal s As Long, ByVal hwnd As Long, ByVal wMsg As Long, ByVal lEvent As Long) As Long


Operating Systems Supported
Requires Windows Sockets 1.1


Parameter Information
- s
[in] A descriptor identifying the socket for which event notification is required.

- hWnd
[in] A handle identifying the window that should receive a message when a network event occurs.

- wMsg
[in] The message to be received when a network event occurs.

- lEvent
[in] A bitmask that specifies a combination of network events in which the application is interested.

Return Values
The return value is zero if the application's declaration of interest in the network event set was successful. Otherwise, the value SOCKET_ERROR is returned, and a specific error number can be retrieved by calling WSAGetLastError.

Last update: 07 April 2006