Q:

Any TNEF file parsing/decoding library in C# available to use in Windows store app?

UPDATE 1
I tried to port existing C library as WinRT component, but it's not working as I must be doing some mistake, I am totally unaware about C++/C dev in Visual Studio. Please anyone help to port existing C lib to C# or help to develop WinRT component from it.

Transport Neutral Encapsulation Format or TNEF is a proprietary email attachment format used by Microsoft Outlook and Microsoft Exchange Server. An attached file with TNEF encoding is most often named winmail.dat or win.dat. It consists of email body, subject & attachments.
I've searched a lot and found two relevant solution. One is in C language, that I don't want. Other solution (I'm not sure though) is not compatible with WinRT.
So anyone know any C# library by which, I can decode the Winmail.dat file and extract the attached file and other data. I want to consume that lib in C#/XAML WinRT app.

A:

I've recently written a completely open source (MIT licensed) version of Microsoft's Microsoft.Exchange.Data.ContentTypes.Tnef namespace TNEF API in MimeKit which is available via NuGet.
You can view the documentation for my implementation here: http://www.mimekit.net/docs/html/N_MimeKit_Tnef.htm
The only difference is the namespace. My implementation uses MimeKit.Tnef instead of Microsoft.Exchange.Data.ContentTypes.Tnef.

