Finding the Icon for a Message

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

To find the icon associated with a message

  1. Call the message's IMAPIProp::GetProps method to retrieve its PR_MESSAGE_CLASS (PidTagMessageClass) property.

  2. Call MAPIOpenFormMgr to retrieve an IMAPIFormMgr interface pointer. Pass your IMAPISession pointer in the pSession parameter.

  3. Call IMAPIFormMgr::ResolveMessageClass to retrieve an IMAPIFormInfo interface pointer.

  4. Use the IMAPIFormInfo pointer to call IMAPIProp::GetProps and retrieve the PR_ICON (PidTagIcon) and/or PR_MINI_ICON (PidTagMiniIcon) properties.