The WSAVERSION structure provides version comparison in Windows Sockets.
typedef struct _WSAVersion {
DWORD dwVersion;
WSAECOMPARATOR ecHow;
} WSAVERSION, *PWSAVERSION, *LPWSAVERSION;
dwVersion
Version of Windows Sockets.
ecHow
WSAECOMPARATOR enumeration, used in the comparison.
Header: Declared in winsock2.h.
Library: Use ws2_32.lib.