MAKEWORD macro

Creates a WORD value by concatenating the specified values.

Syntax

WORD MAKEWORD(
   BYTE a,
   BYTE b
);

-parameters

-param a

The low-order byte of the new value.

-param b

The high-order byte of the new value.

-return

Type: WORD

The new value.

Requirements

Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header minwindef.h (include Windows.h)

See also

Windows Data Types