[Home] [Prev] [Next] [Up]
MAKEDWORD
GETLOWORD
GETHIWORD
Macros for concatenating two word-sized integers into a long integer, or extracting the high or low order words from the long integer.
Usage:
#include <XDataUtil.h>
long MAKEDWORD(short hi, short lo)
short GETLOWORD(long lw)
short GETHIWORD(long lw)
Description
MAKEDWORD is a macro which concatenates two word-sized objects into a long-word sized object.
GETLOWORD extracts the low-order word from a long word object.
GETHIWORD extracts the high-order word from a long word object.
These are declared as macros, which has some consequences on how these macros can be used.