using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.Lmx; [ComImport] [Guid("50DEBB44-A6A3-4FEF-A06A-635B51DE8716")] [ClassInterface(ClassInterfaceType.None)] [TypeLibType(TypeLibTypeFlags.FCanCreate)] public class CoObjectStgClass : CoObjectStg, IObjectStg { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.Interface)] public virtual extern IAutomationObjectDefinition CreateAutomationObject(); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.Interface)] public virtual extern IPrimitiveDefinition CreatePrimitive(); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.IUnknown)] public virtual extern object Open([In][MarshalAs(UnmanagedType.Struct)] object xmlSource); }