The information in this article applies to:
SYMPTOMS
If two sections of code within the same process call WSAStartup(), the
second call to WSAStartup() fails and returns error WSAVERNOTSUPPORTED
unless the second call specifies the version negotiated in the first call.
RESOLUTIONIf multiple calls are made to WSAStartup(), the second call must request the same version negotiated in the first call. MORE INFORMATIONSome specific examples may help. Currently, if the version of Winsock requested is 1.1 or greater, the negotiated version will be 1.1. If a version less than 1.1 is requested, the call fails and returns the WSAVERNOTSUPPORTED error. Example OneFirst call : 1.1 requestedSecond call: 1.1 requested Result : Success Example TwoFirst call : 2.0 requestedSecond call: 1.1 requested Result : Success Example ThreeFirst call : 2.0 requestedSecond call: 2.0 requested Result : WSAVERNOTSUPPORTED Example FourFirst call : 1.1 requestedSecond call: 2.0 requested Result : WSAVERNOTSUPPORTED Additional query words:
Keywords : kbnetwork kbAPI kbNTOS350 kbNTOS351 kbWinOS2000 kbSDKPlatform kbWinOS310 kbWinOS95 kbWinsock kbGrpNet |
Last Reviewed: February 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |