How to get contact information from notes?

Hi Guys,

I am writing dll(using notes/domino C++ API) and want to get contact information (firstName, LastName, phone number, emailId etc…) from notes database so that I can put it in different structure. Can anyone help?