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.
wSel
Specifies a segment selector.
wOff
Specifies an offset from the beginning of the given segment to the desired byte.
The return value is a long pointer to an unspecified data type.
The MAKELP macro is defined in WINDOWS.H as follows:
#define MAKELP(sel, off) ((void FAR*)MAKELONG((off), (sel)))