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