WSAVERSION Structure

The WSAVERSION structure provides version comparison in Windows Sockets.

Syntax

typedef struct _WSAVersion {
    DWORD dwVersion;
    WSAECOMPARATOR ecHow;
} WSAVERSION, *PWSAVERSION, *LPWSAVERSION;  

Members

dwVersion
Version of Windows Sockets.

ecHow
WSAECOMPARATOR enumeration, used in the comparison.

Requirements

Header: Declared in winsock2.h.

Library: Use ws2_32.lib.