wVersion
wVersion is a field in the WSADATA structure of the Windows Sockets API (Winsock). It represents the version of the Windows Sockets specification that has been loaded by the Winsock implementation during initialization. The value is a 16-bit word, typically encoded with major and minor version numbers, and can be inspected using macros that extract the low and high bytes (for example, LOBYTE and HIBYTE) or via the MAKEWORD helper.
In practice, a program initializes Winsock by calling WSAStartup, passing a version desired by the application
The 0x0202 value corresponds to version 2.2, which is the standard reference for Winsock 2. In some
See also: Winsock, WSAStartup, WSADATA, MAKEWORD, WSAGetLastError.