Hello,
I am rewording this question:
Csharp C# visual studio 2008
How do I use the WrapCompressedRTFStream when using DLLImport with mapi32.dll?
Sample of code to import the WrapCompressedRTFStream method. (I found this, I did not figure this part out)
[DllImport("Mapi32.dll", PreserveSig = true)]
private static extern void
WrapCompressedRTFStream(
[MarshalAs(UnmanagedType.Interface)]
UCOMIStream lpCompressedRTFStream,
uint ulflags,
[MarshalAs(UnmanagedType.Interface)]
out UCOMIStream lpUncompressedRTFStream
);
public const uint MAPI_MODIFY = 0x00000001;
public const uint STORE_UNCOMPRESSED_RTF = 0x00008000;
How do I use this in my c# application when my compressedRichText is stored in a string.