The MAKEWORD macro creates an unsigned 16-bit integer by concatenating two given unsigned character values.
WORD MAKEWORD(
BYTE bLow, // low-order byte of short value
BYTE bHigh // high-order byte of short value
);
The return value is an unsigned 16-bit integer value.
The MAKEWORD macro is defined as follows:
#define MAKEWORD(a, b) \
((WORD) (((BYTE) (a)) | ((WORD) ((BYTE) (b))) << 8))
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in windef.h.
Windows Overview, Window Macros