using WrapCompressedRTFStream in C#

Posted by Code Smack on Stack Overflow See other posts from Stack Overflow or by Code Smack
Published on 2010-05-07T03:42:01Z Indexed on 2010/05/07 3:48 UTC
Read the original article Hit count: 459

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about dll

Related posts about c#