using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.NmxAdptr; [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("C76EFD3E-772D-4C16-BEF5-0C0ECAB2A509")] public interface IFMCCallbackEx : IFMCCallback { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] new 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)] new void RequestConnectionRecv([In] int lCookie, [In] int lSize, [In] ref byte pMsgBody); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] new void ConnectionEstablished([In] int lPlatformID, [In] int lCookie, [In] int lErrCode); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] new void DataSent([In] int lPlatformID, [In] int lMessageID, [In] int lCookie, [In] int lErrCode); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] new void ConnectionClosed([In] int lPlatformID, [In] int lCookie, [In] int lErrCode); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void ConnectionEstablishedEx([MarshalAs(UnmanagedType.BStr)] string address, int port, int platformId, int lCookie, int lErrCode); }