Finding the Icon for a Message
To find the icon associated with a message
-
Call the message's IMAPIProp::GetProps method to retrieve its PR_MESSAGE_CLASS property.
-
Call MAPIOpenFormMgr to retrieve an IMAPIFormMgr interface pointer. Pass your IMAPISession pointer in the pSession parameter.
-
Call IMAPIFormMgr::ResolveMessageClass to retrieve an IMAPIFormInfo interface pointer.
-
Use the IMAPIFormInfo pointer to call IMAPIProp::GetProps and retrieve the PR_ICON and/or PR_MINI_ICON properties.