FIX: WSAEventSelect( ) Returns WSAEINVAL if Network Events is 0
Article ID: 168349
Article Last Modified on 4/6/2004
APPLIES TO
- Microsoft Windows NT Workstation 4.0 Developer Edition
- Microsoft Windows NT Server 4.0 Standard Edition
This article was previously published under Q168349
SYMPTOMS
When the network event's bitmask is set to 0 in the last parameter of
WSAEventSelect( ), the API returns WSAEINVAL. As a consequence of this
behavior, the user cannot cancel any prior association of network events
with the socket.
RESOLUTION
Either of the following options will disassociate the socket from the
event:
- Call WSAEventSelect with NULL passed as the event parameter: rc =
WSAEventSelect(socket, NULL, 0);
-or-
- If your design permits, call closesocket to close the socket.
STATUS
This problem was corrected in Windows 2000.
Keywords: kbbug kbfix kbwinsock kbapi kbnetwork kboswin2000fix KB168349