public static extern IntPtr MagickImageCollection_WriteBlob(IntPtr image, IntPtr settings, out UIntPtr length, out IntPtr exception); [DllImport(NativeLibrary.X86Name, CallingConvention = CallingConvention.Cdecl)]