This macro creates an unsigned 16-bit integer by concatenating two spscified unsigned character values.
At a Glance
Header file: | Windef.h |
Windows CE versions: | 1.0 and later |
Syntax
WORD MAKEWORD( BYTE bLow, BYTE bHigh );
Parameters
bLow
Specifies the low-order byte of the new short value.
bHigh
Specifies the high-order byte of the new short value.
Return Values
The return value is an unsigned 16-bit integer value.
Remarks
The MAKEWORD macro is defined as follows:
#define MAKEWORD(a, b) \
((WORD) (((BYTE) (a)) | ((WORD) ((BYTE) (b))) << 8))