Important:
This is retired content. 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 content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

The IMAPISessioninterface is used to manage objects associated with a MAPI session. In Windows Mobile MAPI, this interface is used indirectly through ICEMAPISession.

Methods in Vtable Order

IMAPISession methods Description

IMAPISession::GetLastError

Not supported — do not use.

IMAPISession::GetMsgStoresTable

Provides access to the message store table, which contains information about all of the message stores in the session profile.

IMAPISession::OpenMsgStore

Opens a message store and returns an IMsgStoreinterface pointer for further access.

IMAPISession::OpenAddressBook

Not supported — do not use.

IMAPISession::OpenProfileSection

Not supported — do not use.

IMAPISession::GetStatusTable

Not supported — do not use.

IMAPISession::OpenEntry

Opens an IMsgStoreobject, an IFolderobject, or an IMessageobject, and returns a pointer that can be used to access the object.

IMAPISession::CompareEntryIDs

Compares two entry identifiers to determine whether they refer to the same object.

IMAPISession::Advise

Registers to receive notifications of specified events affecting the session.

IMAPISession::Unadvise

Cancels the sending of notifications previously set up with a call to the IMAPISession::Advisemethod.

IMAPISession::MessageOptions

Not supported — do not use.

IMAPISession::QueryDefaultMessageOpt

Not supported — do not use.

IMAPISession::EnumAdrTypes

Not supported — do not use.

IMAPISession::QueryIdentity

Not supported — do not use.

IMAPISession::Logoff

Ends the MAPI session.

IMAPISession::SetDefaultStore

Not supported — do not use.

IMAPISession::AdminServices

Not supported — do not use.

IMAPISession::ShowForm

Not supported — do not use.

IMAPISession::PrepareForm

Not supported — do not use.

Remarks

The ICEMAPISessioninterface inherits IMAPISession.

Windows Mobile MAPI sessions are managed through the ICEMAPISessioninterface rather than through the IMAPISessioninterface.

The IMAPISessioninterface identifier is IID_IMAPISessionand its pointer type is LPMAPISESSION.

Requirements

Header mapix.h
Library cemapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Other Resources

MAPI Interfaces
Messaging