Platform SDK: MAPI

Launching a New Compose Form

Form server implementers should expect the following sequence of method calls to their form server and form objects when a client application opens a new message for composing:

  1. The client application calls IMAPIFormMgr::ResolveMessageClass to get class information about the form server's message class.
  2. The client application calls IMAPIFormMgr::CreateForm to get a new form object.
  3. The MAPI form manager loads the form server, if it is not already in memory and gets an IMAPIForm object from the form server.
  4. The client application takes the resulting IMAPIForm object and calls the QueryInterface method to get the object's IPersistMessage interface.
  5. The client application calls IPersistMessage::InitNew to associate the form object with IMessage, view context, and advise sink objects.
  6. The client application calls IMAPIForm::DoVerb to invoke the "open" verb.