hi can I get the lync contacts and them status in a listview with C#? I want to get all users from ad to a listview in asp.net web application and control wheater a user is online or offline.
Yes you can. Check the following links to integrate lync in asp.net applications:
Lync integration:
http://sharpsplash.wordpress.com/2012/08/03/integrate-microsoft-lync-into-a-asp-net-web-application/
Show MS Lync presence status: