EM_GETSEL

This message returns the starting and ending character positions of the current selection.

Parameter Description  

wParam Is not used.  
lParam Is not used.  

Return Value

The return value is a long value that contains the starting position in the low-order word. It contains the position of the first nonselected character after the end of the selection in the high-order word.