using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.aaMxDataConsumer; [ComImport] [Guid("CC49CA44-D8CB-11D3-823B-00104B5F96A7")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IMxCallback { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void OnDataChange([In] int userData); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void OnSetAttributeResult([In] int hRef, [In] ref MxStatus pMxStatus, [In][MarshalAs(UnmanagedType.BStr)] string pStatusDescription, [In][MarshalAs(UnmanagedType.Interface)] IMxValue pMxValueOut); }