![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |