HIWORD

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
);
 

Parameters

dwValue
Specifies the value to be converted.

Return Values

The return value is the high-order word of the specified value.

Remarks

The HIWORD macro is defined as follows:

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

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in windef.h.

See Also

Windows Overview, Window Macros, HIBYTE, LOWORD