HIWORD

  WORD HIWORD(dwValue)    

This macro retrieves the high-order word from the 32-bit value specified by the dwValue parameter.

Parameters

dwValue

Specifies the value to be converted.

Return Value

The return value specifies the high-order word of the given 32-bit integer value.

Comments

The HIWORD macro is defined as:

#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))