Finding the Icon for a Message

    To find the icon associated with a message
  1. Call the message's IMAPIProp::GetProps method to retrieve its PR_MESSAGE_CLASS 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 and/or PR_MINI_ICON properties.