HIBYTE

2.x

  BYTE HIBYTE(wInteger)    
  WORD wInteger; /* value from which high byte is retrieved */

The HIBYTE macro retrieves the high-order byte from the integer value specified by the wInteger parameter.

Parameters

wInteger

Specifies the value to be converted.

Return Value

The return value specifies the high-order byte of the given value.

Comments

The HIBYTE macro is defined in WINDOWS.H as follows:

#define HIBYTE(w)  ((BYTE)(((WORD)(w) >> 8) & 0xFF))