Browse by Tags

Tagged Content List
  • Blog Post: How to create an Outlook profile for Office 365

    I had another case involving creating a profile to an Office 365 mailbox. However, this time it was for Outlook’s MAPI, not Exchange's MAPI as previously documented. After discussing this with the Outlook product team they agreed to document the minimum number of properties to create a profile...
  • Blog Post: How to configure an Outlook profile using MFCMAPI for Exchange 2013

    I had another case involving creating a profile to an Exchange 2013 server.  However, this time it was for Outlook’s MAPI, not Exchange’s MAPI as previously documented.  After discussing this with the Outlook product team they agreed to document the minimum number of properties to create a...
  • Blog Post: A new MAPI interface is available to let you force connections to go to a specific Exchange Server

    NOTE: This interface is only available for Outlook 2010's MAPI subsystem. It will be eventually ported to Outlook 2013's MAPI subsystem. I will update this blog post when that happens. [Edit: 1/23/2014 - This new interface did not ship in the December 2013 CU. I was incorrect. I am currently looking...
  • Blog Post: VSTO based Custom Task Panes (CTP) may cause memory leak in Outlook

    I have been wanting to post this for awhile but never got around to it. I have only seen two cases of this so I guess my procrastination is justified. If you are using Visual Studio Tools for Office 3.0 you may experience a memory leak when using Custom Task Panes (CTP) within Outlook. There are two...
  • Blog Post: It's a dirty job but someone has to do it

    Well here is just more of the same, Stephen posted about querying an item to see whether it's "dirty" or not . Here is the .NET equivalent. I didn't actually test these this time so your feedback is welcome. Visual Basic Public Function IsItemDirty( ByVal itm As Object ) As Boolean Dim typeDispatch...
  • Blog Post: Now you see me, now you don't

    My colleague Stephen Griffin recently blogged about how to show or hide the Sender Contact Photo feature in Outlook . Since he only supplied the C++ version the product team asked me to supply the .NET version. [Edit: 2/10/2014: It has come to my attention that the code below will only work for Outlook...
  • Blog Post: Managing Outlook Security Settings

    I got a question today about if one could set the Outlook Security Settings programmatically instead of requiring the user to go through the dialog in the Outlook UI. The answer is Yes, and the article below describes how to do it: How to Assign an S/MIME Certificate to a MAPI Profile for Use with...
  • Blog Post: So what did you say you do here again?

    I was recently asked the following questions regarding my blog and it's purpose. I decided that it would be good to post them here so my reader can understand the motivation of this blog. 1. Have you defined a purpose or strategy for your blog? If so, what is it? The purpose of my blog is to write...
  • Blog Post: Creating Security Label Policy Modules

    It seems that every so often I will see a request come in for assistance with creating a Security Label Policy. Apparently the documentation on MSDN is not sufficient. You can find the article here: http://msdn.microsoft.com/en-us/library/aa140148.aspx . A couple of years ago the product team wrote a...
  • Blog Post: COM Interop Advances in .NET 4.0

    Misha has some great content about the advances in COM Interop in .NET 4.0. Check it out: http://blogs.msdn.com/mshneer/archive/2008/10/28/better-eventing-support-in-clr-4-0-using-nopia-support.aspx Also, 4 videos that describe how it all works: http://blogs.msdn.com/mshneer/archive/2008...
  • Blog Post: Troubleshooting Outlook COM Addins – Using Instrumentation

    At this point, you should have done the following: Confirmed that COM can create your Addin using VBScript Confirmed that Outlook is finding your Addin's registration and that the Addin is properly registered with COM Confirmed that Outlook is loading your DLL into it's process Since you are confident...
  • Blog Post: Who disconnected my RPC!?

    Ryan Gregg has a post out there that is worth a read for anyone who is automating Outlook out of process. Here is the post : http://blogs.msdn.com/rgregg/archive/2008/10/27/application-shutdown-changes-in-outlook-2007-service-pack-2-beta.aspx
  • Blog Post: Desktop Heap (To Outlook): I am exhausted!

    I recently worked on an issue where the customer was getting this error message when attempting to export items from his Calendar to a PST: “The add-in ‘<DLL Path>’ could not be installed or loaded.  This problem may be resolved by using Detect and Repair on the Help menu.”  We were able...
  • Blog Post: Troubleshooting Outlook COM Addins – Using Process Explorer

    Process Explorer is another tool in my arsenal when troubleshooting a COM Addin loading problem.  Often times developers will think that their Addin is not loading, when in fact it is.  The problem is that the Addin is not behaving as expected (e.g. “It’s not adding my toolbar button, when...
  • Blog Post: Troubleshooting Outlook COM Addins – Using ProcMon

    As I explained in my first post, Office uses the ProgId found in the office specific Addin registry (\Software\Microsoft\Office\Outlook\Addins\) to activate the COM component.  Calling CoCreateInstance kicks off a series of COM calls which you can see the results of using Process Monitor (ProcMon...
  • Blog Post: Troubleshooting Outlook COM Addins – Using VBScript

    Since Office uses COM to create Addins and _IDTExtensibility2 inherits from IDispatch it is available to scripting clients, a common technique I use to troubleshoot COM Addins are to see if I can create the component manually via a vbscript. Use the following code to check whether or not COM can create...
  • Blog Post: Troubleshooting Outlook COM Addins - Introduction

    I have decided to start a series called ‘Troubleshooting Outlook COM Addins’. I want to outline tips and tricks to finding the root cause of COM Addin issues. Mainly, why the Addin doesn’t load. I would say that this is the biggest call generator for our team at Microsoft so I thought having a series...
  • Blog Post: Why doesn't my Exchange Client Extension load on Windows Vista

    We had several cases lately where customers are asking this very question. The answer is basically User Account Control (UAC) . If a user is using Vista with UAC enabled Outlook is running with medium Integrity Level (IL). When a process runs with medium IL it cannot delete registry keys from the HKEY_LOCAL_MACHINE...
  • Blog Post: MAPI Forms don't launch when dowloaded from the Exchange Org Form Lib on Windows Vista

    After working this issue for just about six months I am finally at the stage where I can blog about this. Windows Vista changed the COM Activation model to prevent activiation of COM components registered in HKEY_CURRENT_USER when the COM client is running with elevated privileges. When a MAPI Form is...
  • Blog Post: VSTO 2005 Addin does not load in Outlook 2003 if UAC is disabled

    Windows Vista changes the COM Activation model and will no longer create components registered in HKEY_CURRENT_USER (HKCU) if the client application is running with a Integrity Level (IL) of higher than medium. So when UAC is disabled, Outlook will run with High IL. By default, the setup project for...
  • Blog Post: MSPST and Session 0 Isolation don't mix

    I had a case recently where a customer was using the Microsoft Personal Storage Provider (MSPST) in a service. Everything was working fine until they moved to Windows Vista, the kernel objects MSPST uses (mutants, file mappings, etc) to allow two processes to synchronize access to the same physical ...
Page 1 of 1 (21 items)