Partager via


Launching a Form Server

Applies to: Office 2010 | Outlook 2010 | Visual Studio

The series of interactions that occurs when a form is loaded from persistent storage (that is, from a form library) to display a message is as follows:

  1. The messaging client gets the message's message class, message flags, and message status. This step is optional; if these pieces of data are not provided in step 2, the form manager will retrieve them.

  2. The messaging client calls IMAPIFormMgr::LoadForm with the target message.

  3. The form manager loads the form server from the appropriate form library. If the form server for the target message is not installed, the form manager installs the form's executable files, as well.

  4. The form manager calls IUnknown::QueryInterface on the form object to obtain the form object's IMAPIForm : IUnknown and IPersistMessage : IUnknown interfaces.

  5. The form manager calls IPersistMessage::Load with the message site and message interfaces from the viewer object.

  6. The form object calls back to the messaging client's IMAPIMessageSite::GetSiteStatus method.

  7. The form manager calls the form object's IMAPIForm::SetViewContext method with the view context interface from the messaging client.

  8. The form object calls back to the messaging client's IMAPIViewContext::SetAdviseSink method.

  9. The form object calls back to the messaging client's IMAPIViewContext::GetViewStatus method.

  10. The messaging client calls the form object's IMAPIForm::Advise method with the view context interfaces from the viewer object and the message site object.

  11. The messaging client calls the form object's IMAPIForm::DoVerb method.

  12. The form object creates its user interface, if necessary, and interacts with the user.

See Also

Concepts

Form Server Interactions