API: Accessing selection in Listbox

Hi All, I'm trying to figure out how to determine what value is selected in a couple of list boxes when a user presses a button. I've got the hook to the button figured out, just cant figure out what's selected. Any help is appreciated.

Thanks,

Greg

SolidworksSolidworks Pdm enterprise Pdm