I guess you can hardcode the icons for the built-in message classes and for
the messages with PR_ICON_INDEX present. For everything else you would need
to use the IMAPIFormMgr to call IMAPIFormMgr::ResolveMessageClass(), then
read PR_ICON and PR_MINI_ICON I am afraid.