The HIWORD macro retrieves the high-order word from the given 32-bit value.
WORD HIWORD(
DWORD dwValue // value from which high-order word is retrieved
);
The return value is the high-order word of the specified value.
The HIWORD macro is defined as follows:
#define HIWORD(l) ((WORD) (((DWORD) (l) >> 16) & 0xFFFF))
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, HIBYTE, LOWORD