Howto: set ShowAsOutlookAB using Extended MAPI

  • Thread starter Thread starter tonyl
  • Start date Start date
T

tonyl

Hi,

I have problem on setting the ShowAsOutlookAB (i saw it in outlookspy)
of MAPIFolder (contact folder) to true when my application creates a contact
folder using extended MAPI. Anyone know how to do it?

Regards,
Tony
 
I'm not sure there's a MAPI property for this but why don't you just
use OOM for this? Use the folder's EntryID to get the
Outlook::MAPIFolder and set the property to true.

Something like this should work:

Outlook::_NameSpacePtr ns = myOutlookApp->Session;
Outlook::MAPIFolderPtr pFolder = ns->GetFolderFromID(folderEntryID,
vtMissing);
pFolder->ShowOutlookAsAB = VARIANT_TRUE;
 
Back
Top