The IMAPIFormMgr::CreateForm method launches a form to create a new message of the form's message class.
HRESULT CreateForm(
ULONG ulUIParam,
ULONG ulFlags,
IMAPIFormInfo pfrminfoToActivate,
REFIID refiidToAsk,
LPVOID FAR * ppvObj
);
Form viewers call the IMAPIFormMgr::CreateForm method to launch a form to create a new message of the form's message class. CreateForm launches the form by creating an instance of the form server for that form as described in the given form information object. If required, CreateForm calls IMAPIFormMgr::PrepareForm to download the form server code to the user's disk.
The pfrminfoToActivate parameter must point to a form information object that has been correctly resolved.
After the form has been launched, the calling form viewer must set up a message using the IPersistMessage interface and can optionally set up a view context for the form. For more information, see Launching a Form Server.
IMAPIViewContext : IUnknown, IPersistMessage : IUnknown