次の方法で共有


MAPIOpenFormMgr

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Opens an IMAPIFormMgr interface on a form library provider object in the context of an existing session.

Header file:

Mapiform.h

Implemented by:

MAPI

Called by:

Client applications

MAPIOpenFormMgr(
  LPMAPISESSION pSession,
  LPMAPIFORMMGR FAR * ppmgr
);

Parameters

  • pSession
    [in] Pointer to the session in use by the client application.

  • ppmgr
    [out] Pointer to the returned IMAPIFormMgr interface.

Return Value

None.

Remarks

After a client application makes a call to the MAPIOpenFormMgr function, most subsequent forms-related interactions take place through the form library provider or an interface returned by the form library provider. The IMAPIFormMgr interface allows the client to work with message handlers and perform resolutions between message classes and form libraries.

MFCMAPI Reference

For MFCMAPI sample code, see the following table.

File

Function

Comment

MainDlg.cpp opens the form manager so a form can be selected.

CMainDlg::OnSelectForm

MFCMAPI uses the MAPIOpenFormMgr method to open the form manager so a form can be selected.

See Also

Concepts

MFCMAPI as a Code Sample