using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.NmxSvc; [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("4CA783BC-F68E-42F4-9D76-8107C826F625")] 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); }