Howto: set ShowAsOutlookAB using Extended MAPI

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
 
J

Johannes

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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top