R
Rui Feng
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.
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.