How to get contacts from Windows Address Book using C#?

Posted by Sundermagar under C# on 11/27/2010 | Points: 10 | Views : 6850 | Status : [Member] | Replies : 4
Hi All,

I have been developing a small application which grabs all windows contacts. I not aware of how to read Windows Address Book WAB. I could not find any API or reference for .net accessing Windows Address Book.

Can anyone have an idea how we can read contacts from Windows Address Book using C#?

Thanks,
Sunder

Sunder Magar


Responses

Posted by: Vuyiswamb on: 11/28/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
This is how you will do it
http://msdn.microsoft.com/en-us/library/ms629361

http://contacts.codeplex.com/

Thank you for posting at Dotnetfunda
[Administrator]

Sundermagar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sundermagar on: 11/29/2010 [Member] Starter | Points: 25

Up
0
Down
Hi Vuyiswamb,

Thanks for reply!

How will I use the library is there any reference? I tried to add the reference of WAB32.dll but windows does not allow to add it in my C# code. and second thing contact.codeplex.com that I read but I had a doubt does it works for Windows Address Book in Windows XP also or only for Windows Vista.

Thanks,
Sunder

Sunder Magar

Sundermagar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: T.saravanan on: 11/29/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Refer those links...I think its helpful to you..

http://www.codeproject.com/KB/cpp/wabapi.aspx

http://www.codeproject.com/KB/cs/outlookconnector.aspx

http://social.msdn.microsoft.com/Forums/en/vsto/thread/fb771ae9-86e8-4568-b4d7-4216c69a223a

Cheers :)

Thanks,
T.Saravanan

Sundermagar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sundermagar on: 11/29/2010 [Member] Starter | Points: 25

Up
0
Down
Hi Saravanan,

Thanks for your effort!

But I already gone through the above links wabapi is in C++ unmanaged code, outlookconnector is for Microsoft Outlook (Office Package) and the msdn thread does not have solutions.

I have solution for reading contacts from Microsoft Outlook but I am searching for Outlook Express (windows address book) which is in Windows XP. wabapi is written for the same but it is in C++ and I am searching the API for .net C#

Thanks,
Sunder

Sunder Magar

Sundermagar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response