MAKELP

3.1

  void FAR* MAKELP(wSel, wOff)    
  WORD wSel; /* selector */
  WORD wOff; /* offset */

The MAKELP macro combines a segment selector and an address offset to create a long (32-bit) pointer to a memory address.

Parameters

wSel

Specifies a segment selector.

wOff

Specifies an offset from the beginning of the given segment to the desired byte.

Return Value

The return value is a long pointer to an unspecified data type.

Comments

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

#define MAKELP(sel, off)    ((void FAR*)MAKELONG((off), (sel)))

See Also

MAKELONG