次の方法で共有


Launching a Form Server

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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