HIWORD

2.x

  WORD HIWORD(dwInteger)    
  DWORD dwInteger; /* value from which high word is retrieved */

The HIWORD macro retrieves the high-order word from the 32-bit integer value specified by the dwInteger parameter.

Parameters

dwInteger

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 in WINDOWS.H as follows:

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