MAKELONG

2.x

  DWORD MAKELONG(wLow, wHigh)    
  WORD wLow; /* low-order word of long value */
  WORD wHigh; /* high-order word of long value */

The MAKELONG macro creates an unsigned long integer by concatenating two integer values, specified by the wLow and wHigh parameters.

Parameters

wLow

Specifies the low-order word of the new long value.

wHigh

Specifies the high-order word of the new long value.

Return Value

The return value specifies an unsigned long-integer value.

Comments

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

#define MAKELONG(low, high) \
    ((LONG)(((WORD)(low)) | (((DWORD)((WORD)(high))) << 16)))