public enum InitFlags { None = 0, EnableRfc2047Workarounds = (1 << 0), } [DllImport("gmime")] static extern void g_mime_init (int flags); public static void Init () { g_mime_init (0); } public static void Init (InitFlags flags) { g_mime_init ((int) flags); } [DllImport("gmime")] static extern void g_mime_shutdown (); public static void Shutdown () { g_mime_shutdown (); }