SELECTOROF

3.1

  WORD SELECTOROF(lp)    
  void FAR* lp; /* long pointer, */  

The SELECTOROF macro retrieves the segment selector from the specified long pointer.

Parameters

lp

Specifies a long pointer.

Return Value

The return value is the segment selector.

Comments

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

#define SELECTOROF(lp)      HIWORD(lp)

See Also

HIWORD, OFFSETOF