MAKELONG function

int MAKELONG(
  1. int a,
  2. int b
)

Creates a LONG value by concatenating the specified values.

Implementation

//
// #define MAKELONG(a, b)   ((LONG)(((WORD)(((DWORD_PTR)(a)) & 0xffff)) |
//                          ((DWORD)((WORD)(((DWORD_PTR)(b)) & 0xffff))) << 16))
int MAKELONG(int a, int b) => a & 0xffff | ((b & 0xffff) << 16);