How can I use the same code to get a different user's SID, rather than the current loged in user.

I was thinking of using a listview to display the windows users, and when you clicked on the user, the selected user's SID will show.

Can anyone show me how to do that?