Pass the pointer to the form information object in a call to IMAPIFormMgr::CreateForm. CreateForm loads the appropriate form server. In addition, pass an interface identifier to CreateForm to specify the interface to be used to access the new message. Typically, you request IPersistMessage by passing IID_IPersistMessage to CreateForm.
Save the new message by calling its IPersistMessage::Save method. The form server should set values for the message's required properties when it creates the message.
Note There are opportunities for performance gains when loading a new custom message into a form server because you will already have had an opportunity to get some information about the message — such as its message class — during the processing required for the ResolveMessageClass and CreateForm calls. Because of this, you will be able to simplify the processing required before calling LoadForm over that described in the topic Loading a Message into a Form .