Is it possible to get Outlook 2003 Integration API from OOM or MAP

G

Guest

Hi all.

I can get objects in MAPI from OOM (Outlook Object Module) using this way:

// Application from IDispatch
CComQIPtr < Outlook::_Application > spApp(Application);
CComPtr < Outlook::_NameSpace > spNameSpace;
_bstr_t bstrType("MAPI");
spApp->GetNamespace(bstrType, &spNameSpace);
CComPtr < IMAPISession > spMAPISession;
CComPtr < IUnknown > spUnknown;
spNameSpace->get_MAPIOBJECT(&spUnknown);
spUnKnown->QueryInterface(IDD_IMAPISession, (void **)&spMAPISession);

I wander whether I can have the same way to get Outlook 2003 Integration
API, for example, to get IOlkAccountManager.

Thank you.
 
D

Dmitry Streblechenko

No, since accounts are not at all exposed in Outlook 2003.
Why can't you create a new instance of the IOlkAccountManager interface just
like the integration API suggests?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top