| Previous | Next |
| WSASYSNOTREADY | WSANOTINITIALISED |
WSAVERNOTSUPPORTED
WSAVERNOTSUPPORTED means that the requested Winsock version cannot be provided by the installed implementation. It is an initialization compatibility error, not a network connection error.
Record the version requested in WSAStartup and the version returned by the implementation. Request a version the target system supports or adjust the application compatibility requirement before diagnosing DNS, routing, or peer connectivity.
How version negotiation works
WSAStartup receives the requested version and returns the version actually supported in the WSADATA structure. A program must verify that the returned version is acceptable before using Winsock functions that depend on it.
What to check
- Request the intended Winsock version with
MAKEWORD. - Validate
wVersionandwHighVersioninstead of assuming that version 2.2 is available. - Do not continue to create sockets after initialization has failed.
Looking for a different code? Search another status or error code.
