Platform SDK: Exchange Server |
Returns interfaces for a particular object and the object’s containing store. The interfaces returned depend on the context of the caller. For a list of possible interfaces returned, see the “Remarks” section.
See IExchExtCallback : IUnknown.
HRESULT GetObject( LPMDB FAR * lppmdb, LPMAPIPROP FAR * lppmp );
The IExchExtCallback::GetObject method is used to return an interface and message store for a particular object. The interface returned depends on the context or the caller. When called by the IExchExtPropertySheets::GetPages method, the object is the object for which information should be displayed, and the store is the store containing that object.
The interfaces must be released before the call which was given the lpeecb parameter returns. The following list describes the interfaces that are returned when GetObject is called from various contexts.
When called from the IExchExtCommands::InitMenu or IExchExtCommands::DoCommand methods, the object is the open folder being displayed and the store is the store that contains that folder. When the root of a store is displayed, the object is the IPM_SUBTREE folder. Both pointers are NULL when the list of stores is displayed in the content pane.
When called from InitMenu and DoCommand, the object is the ABContainer being displayed and the store is NULL. GetObject is called in the following contexts:
EECONTEXT_SENDNOTEMESSAGE
EECONTEXT_READNOTEMESSAGE
EECONTEXT_SENDPOSTMESSAGE
EECONTEXT_READPOSTMESSAGE
EECONTEXT_READREPORTMESSAGE
EECONTEXT_SENDRESENDMESSAGE
The object is the message being displayed and the store is the store which contains that message.
The object interface returned in the lppmp parameter supports the IMAPIProp : IUnknown interface as well as the additional interface methods specific to its type.
Object | Interface type |
---|---|
Folder | IMAPIFolder |
Message | IMessage |
Store | IMsgStore |
Address Book | IABContainer |
IExchExt::Install, IExchExtAdvancedCriteria::InstallAdvancedCriteria