A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 28th 06, 06:27 PM posted to microsoft.public.outlook.program_addins
Rui Feng
external usenet poster
 
Posts: 9
Default Is it possible to get Outlook 2003 Integration API from OOM or MAP

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.

  #2  
Old August 28th 06, 06:47 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Is it possible to get Outlook 2003 Integration API from OOM or MAP

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

"Rui Feng" wrote in message
...
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.



  #3  
Old August 29th 06, 08:10 AM posted to microsoft.public.outlook.program_addins
Rui Feng
external usenet poster
 
Posts: 9
Default Is it possible to get Outlook 2003 Integration API from OOM or

Yeah. I did as you said and it works.
Thank you. :-)

"Dmitry Streblechenko" wrote:

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

"Rui Feng" wrote in message
...
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.




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to Exchange mailbox from client machine using OOM [email protected] Outlook and VBA 3 July 14th 06 12:12 PM
Outlook Calendar API [email protected] Outlook - General Queries 2 March 13th 06 05:11 AM
integration with Outlook 2003: slower on XP than W2K? after upgrade? Pieter Outlook - General Queries 5 February 11th 06 05:53 PM
OOM and IMessage show different calendar times? Beiley Add-ins for Outlook 5 February 9th 06 06:37 PM
Installing Outllok 2003 causes DIS(integration) with Office Duff Browne Outlook - Installation 1 February 7th 06 04:46 PM


All times are GMT +1. The time now is 12:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.