views:

22

answers:

1

Hi,

Does anyone know how to search the Global Address Book on the exchange server? It seems the 'Address Book' is different to a public contact list, hence this popular example code (or similar) points to a completely different set of contacts:

Outlook.Application app = new Outlook.Application();
Outlook._NameSpace olNS = app.GetNamespace("MAPI");
Outlook._Folders oFolders = olNS.Folders;
Outlook.MAPIFolder oContactsFolder = olNS.Folders["Public Folders"].Folders["All Public Folders"].Folders["Contacts"];

I need to search for a specific contact name. PS:- I'm using outlook 2007. Many Thanks...

A: 

Hi, If you are online a call using ADSI would be the way to go, offline you are in looking at extended mapi there is an answer to that here on SO using redemption.

76mel