#include once "window9.bi"

Function GetSelectedListViewItem( gadget As Integer, Item as Integer, Mask As Integer = LVIS_SELECTED	Or LVIS_FOCUSED) As Integer Export
	    Return SendMessage(GadgetID(gadget), LVM_GETITEMSTATE, Item, Cast(lparam,Mask))   	
End Function