using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.NmxAdptr; [ComImport] [Guid("4CA783BC-F68E-42F4-9D76-8107C826F625")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface INmxStatus { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void OPENCONNECTION([In] int lPlatformID, [In][MarshalAs(UnmanagedType.Interface)] INmxNotify pNotify, [In] int lReference, [In] int lProcessId, out int plCookie, out tagNmxSvcConnectionStatus peStatus); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void CloseConnection([In] int lCookie, out tagNmxSvcConnectionStatus peStatus); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void GetConnectionStatus([In] int lPlatformID, out tagNmxSvcConnectionStatus peConnState); }