HIBYTE function

int HIBYTE(
  1. int w
)

Retrieves the high-order byte from the specified 16-bit value.

Implementation

//
// #define HIBYTE(w)           ((BYTE)((((DWORD_PTR)(w)) >> 8) & 0xff))
int HIBYTE(int w) => (w >> 8) & 0xff;