The macro expects two bytes as parameters:
WORD MAKEWORD(
BYTE bLow,
BYTE bHigh
);
Defined Windef.has:
It basically builds 16-bit words from two 1-byte words (and doesn't look very portable)
Binary representation of 2 with 1 byte (WORD): | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
, MAKEWORD(2,2), :
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
512 + 2 = 514: .
- Winsock, , WSAStartup.