title: Is it possible (and how) to make an RDOMail object wrap a MAPI IMessage object?
body: <p>I am working to create a plugin for some application using C++. The application would provide me MAPI messages and gives me a chance to work on them. The application gives me the MAPI messages as pointers to the <a href="https://msdn.microsoft.com/en-us/library/office/cc842097.aspx" rel="nofollow">IMessage</a> interface.</p>
  
  <p>I am used to working with MAPI messages using the <a href="http://www.dimastr.com/redemption/home.htm" rel="nofollow">Outlook Redemption</a> library mainly with C#. But in this case, I always get an <code>RDOMail</code> object when I open messages (not <code>IMessage</code> objects).</p>
  
  <p>I was wondering if it is possible to use the <code>RDOMail</code> object in Outlook Redemption to wrap an existing message that I have a pointer to (the <code>IMessage</code> object).</p>
  
  <p>The <code>RDOMail</code> interface has a <code>MAPIOBJECT</code> property that returns the underlying MAPI object. However, this property is read-only.</p>
  
  <p>Is there a way to wrap a MAPI message using Outlook Redemption using the <code>IMessage</code> pointer?</p>