using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.NmxAdptr; [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("4422DBBC-3714-487C-81A4-CBA3B3E981A6")] public interface IFMCCallback { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void DataReceived([In] int lPlatformID, [In][ComAliasName("Interop.NmxAdptr.ActionTypes")] ActionTypes usType, [In] int lCookie, [In] int lSize, [In] ref byte pMsgBody); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void RequestConnectionRecv([In] int lCookie, [In] int lSize, [In] ref byte pMsgBody); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void ConnectionEstablished([In] int lPlatformID, [In] int lCookie, [In] int lErrCode); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void DataSent([In] int lPlatformID, [In] int lMessageID, [In] int lCookie, [In] int lErrCode); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void ConnectionClosed([In] int lPlatformID, [In] int lCookie, [In] int lErrCode); }