Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / August 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rui Feng - 28 Aug 2006 18:27 GMT
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.
Dmitry Streblechenko - 28 Aug 2006 18:47 GMT
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

> Hi all.
>
[quoted text clipped - 14 lines]
>
> Thank you.
Rui Feng - 29 Aug 2006 08:10 GMT
Yeah. I did as you said and it works.
Thank you. :-)

> No, since accounts are not at all exposed in Outlook 2003.
> Why can't you create a new instance of the IOlkAccountManager interface just
[quoted text clipped - 23 lines]
> >
> > Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.