WSAAsyncSelect The Windows Sockets WSAAsyncSelect function requests Windows message-based notification of network events for a socket.
VB4-32,5,6
Declare Function WSAAsyncSelect Lib "wsock32.dll" (ByVal s As Long, ByVal hwnd As Long, ByVal wMsg As Long, ByVal lEvent As Long) As Long |
VB.NET
System.Net.Sockets.Socket.Select |
Operating Systems Supported |
Requires Windows Sockets 1.1 |
- 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. |
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. |
|