The IMAPIFormContainer::ResolveMessageClass method resolves a message class to its form within a form container and returns a form information object for that form.
See IMAPIFormContainer : IUnknown.
HRESULT ResolveMessageClass(
LPCSTR szMessageClass,
ULONG ulFlags,
LPMAPIFORMINFO FAR * ppforminfo
);
Client applications call the IMAPIFormContainer::ResolveMessageClass method to resolve a message class to a form within a form container. The form information object returned in the ppforminfo parameter provides further access to the properties of the form with the given message class.
To resolve a message class to a form, pass in the name of the message class to be resolved, for example IPM.HelpDesk.Software
. To force the resolution to be exact — that is, to prevent resolution to a superclass of the message class — the MAPIFORM_EXACTMATCH flag can be passed in the ulFlags parameter.
The class identifier for the resolved message class is returned as part of the form information object. Do not assume that the class identifier exists in the OLE library until after calling either the IMAPIFormMgr::PrepareForm method or the IMAPIFormMgr::CreateForm method.
IMAPIFormInfo : IMAPIProp, IMAPIFormMgr::CreateForm, IMAPIFormMgr::PrepareForm