C++/VB - MAPI_CACHE_OK value?

Asked By Kevin D.
22-Jan-10 09:28 AM
In the documentation on msdn
(http://msdn.microsoft.com/en-us/library/cc815675.aspx) they list a
MAPI_CACHE_OK flag as usable for OpenEntry, but it does not exist in a header
anywhere that I can find and I cannot find a definition of its value. Anyone
know?
Outlook
(1)
OutlookSpy
(1)
OpenEntry
(1)
  Dmitry Streblechenko replied to Kevin D.
22-Jan-10 04:07 PM
MAPI_NO_CACHE    = 0x00000200
MAPI_CACHE_ONLY   = 0x00004000


--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
Create New Account
help
our custom message classes and would like to do specific tasks for those messages in Outlook. The task is like modifying few MAPI properties before sending the message. To get a MAPI IMessage object from currently selected mail, I am using the API get_MAPIOBJECT of Outlook::_MailItem interface. For this API, I am getting the error 0x80010105 (The server threw an retrieved. One more observation: while I open the (custom message class) selected mail item from OutlookSpy, it shows all the properties as empty / null. But for standard message class like IPM.Note, OutlookSpy shows Item properties propperly. We cannot use Exchange Client Extension interfaces, since Microsoft has deprecated them from Outlook 2010 onwards, so now dependant on OOM for handling UI events. Here is my code snippet: . . CComPtr<Outlook::Selection> olSel; hRes = m_spExplorer-> get_Selection(&olSel); if ( FAILED (hRes) ) return; long count; hRes = olSel-> get_Count(&count); if ( FAILED (hRes) ) return; LPDISPATCH olSelectedItem = NULL; CComQIPtr <Outlook::_MailItem> pMailItem; CComVariant covIndex; covIndex.vt = VT_I4; covIndex.lVal = 1; olSel-> Item(covIndex, &olSelectedItem); / / Get from Dmitry that the error 0x80010105 (RPC_E_SERVERFAULT) is something to do with the COM Server (Outlook.exe in our case). Dmitry could you please elaborate about the possible cause, I did
Outlook and CRM integration C++ / VB Hi friends, I am curretly working on the CTI Application and using TAPI2.2 for it. Now, Iam struct at the point of integrating the Outlook (and other softwares like CRM, MS ACCESS, etc). Can any one tell me how to such softwares with the CTI Application? Do I have to go through the architecture of Outlook to integrate my CTI application with it or there is any other way for it? Also, if I am integrating Outlook (or other CRM or MS softwares) then do I have to take the permission from them and pay them? Thanks, Mohit Win32 TAPI Discussions Outlook (1) CTI Application (1) Mohit Soni Outlook (1) Application (1) Visual (1) Andreas Marschall (1) Microsoft Outlook (1) Mohit Mohit (1) Am 17.08.2010 06:21, schrieb Mohit Soni: Outlook has TAPI support - but only for outgoing calls. It does not indicate incoming calls. But
VB Hi, can someone please advise how do I find a default inbox folder for Outlook 2000+? I managed to do this with ease for Outlook 2007. Then I did the same using redemption for Outlook 2002+ But as Outlook 2000 does not have a Session::get_MAPIOBJECT method I am stuck . . . My method needs to look something like this: HRESULT GetLocalInboxFolder(Outlook::_MailItem mi, MAPIFolder &InboxFolder) { RDOSession rsession; CLSID clsid; _ _uuidof(Redemption::IRDOSession), (LPVOID *)&rsession); / / now I am stuck with what I can use for Outlook 2000 - please help } Win32 Messaging Discussions Outlook 2007 (1) Outlook (1) Attachment (1) HRESULT (1) Outlook 2002 (1) Outlook 2000 (1) Inbox folder (1) For
Outllook Object model C++ / VB I have a basic script below to lauch outlook and close it back up however it seems to hang on the the "Set objOutlook = CreateObject("Outlook.Application") " line. and i cant seem to figure out why. Outlook lauches, but never closes. when i manually terminat the process it give the error I Dim objProcess Const olFolderInbox = 6 Dim obshell set ObjShell = CreateObject("wscript.Shell") Set objOutlook = CreateObject("Outlook.Application") Set objNamespace = objOutlook.GetNamespace("MAPI") objNamespace.Logon "Default Outlook Profile", , False, True Set objFolder = objNamespace.GetDefaultFolder(olFolderInbox) objFolder.Display objOutlook.Session.logoff objOutlook.Quit Set objOutlook = Nothing Set objProcesses = GetObject("WinMgmts:root / CIMV2").ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'OUTLOOK.EXE'") For Each objProcess In objProcesses objProcess.Terminate Next VBScript Discussions Outlook (1) ObjNamespace.GetDefaultFolder (1) ObjOutlook.GetNamespace (1) ObjOutlook.Session.logoff (1) ObjProcess.Terminate (1) ObjNamespace ObjFolder.Display (1) OlFolderInbox (1) According to the message you are missing an 'i' in 'Outlook.Applcation' - - urkec unforrunatly that was type in my message, the script has it spelled correctly
VB Hello, i've got following problem, i've got a german or an english Outlook 2003 or 2007. Then i change my keyboard layout to hebrew or greek. I create extended MAPI or Redemption i only get ??? ??? as a result. The same i see with Outlook Spy. Is there a way to get the original = D7 = A9 = D7 = A9 = D7 = A9 = D7 = A9 = D7 = A9 = D7 = A9 ba = ck? Greets Hans Schmidt Win32 Messaging Discussions Outlook 2003 (1) Tool (1) Hans Schmidt (1) English Outlook (1) Keyboard layout (1) What version of Outlook are you using? Are you retriving PR_SUBJECT_A or PR_SUBJECT_W? - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook, CDO and MAPI Developer Tool - Hello, i've got following problem, i've got a german or an english Outlook 2003 or 2007. Then i change my keyboard layout to hebrew or greek. I create